This commit is contained in:
Trever Fischer 2012-11-18 09:21:09 -05:00
parent ec6cc0db7d
commit f9340c7582

View File

@ -12,7 +12,6 @@ var InventoryWidget = function(tableElement) {
InventoryWidget.prototype._vaultEvent = function(evt, payload) {
$(payload.items).each((function(idx, item) {
var slot = this.slotByPosition(item.position);
console.log(slot);
slot.updateFromJSON(item);
}).bind(this));
};
@ -32,7 +31,6 @@ ItemSlot.prototype.getPosition = function() {
}
ItemSlot.prototype.updateFromJSON = function(data) {
console.log(data.item);
this.setMaterial(data.item);
this.setDurability(data.durablility);
this.setDamage(data.damage);
@ -46,7 +44,6 @@ ItemSlot.prototype.setName = function(s) {
}
ItemSlot.prototype.setMaterial = function(id) {
console.log(this.item);
this.item.data('material', id);
this.item.attr('class',"inventory-item-"+id);
}