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