debug--
This commit is contained in:
parent
ec6cc0db7d
commit
f9340c7582
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user