diff options
Diffstat (limited to 'StoneIsland/www/js/lib/products/ProductView.js')
| -rwxr-xr-x | StoneIsland/www/js/lib/products/ProductView.js | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/StoneIsland/www/js/lib/products/ProductView.js b/StoneIsland/www/js/lib/products/ProductView.js index 63f651b6..071a804d 100755 --- a/StoneIsland/www/js/lib/products/ProductView.js +++ b/StoneIsland/www/js/lib/products/ProductView.js @@ -86,11 +86,12 @@ var ProductView = ScrollableView.extend({ return cb(data, this.cache[code]) } sdk.product.item({ - code: code - }).done(function(details){ - this.cache[code] = details - cb(data, details) - }.bind(this)) + code: code, + success: function(details){ + this.cache[code] = details + cb(data, details) + }.bind(this) + }) }, load: function(code, data){ |
