diff options
| author | Jules Laplace <jules@okfoc.us> | 2015-11-08 19:32:08 -0500 |
|---|---|---|
| committer | Jules Laplace <jules@okfoc.us> | 2015-11-08 19:32:19 -0500 |
| commit | 069e15c10ed10b45673c2365f78fe8918753f19d (patch) | |
| tree | b6e64d1f31f8c4390415efe186116479ef657fb9 /StoneIsland/www/js/lib/products/ProductView.js | |
| parent | aa23fc23b5a8cf43d115bcf3953806e66dadf1c3 (diff) | |
use jqxhr style callbacks
Diffstat (limited to 'StoneIsland/www/js/lib/products/ProductView.js')
| -rw-r--r-- | StoneIsland/www/js/lib/products/ProductView.js | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/StoneIsland/www/js/lib/products/ProductView.js b/StoneIsland/www/js/lib/products/ProductView.js index 0d0b0b25..9bfbe4a2 100644 --- a/StoneIsland/www/js/lib/products/ProductView.js +++ b/StoneIsland/www/js/lib/products/ProductView.js @@ -56,12 +56,11 @@ var ProductView = ScrollableView.extend({ this.el.className = "loading" } sdk.product.item({ - code: code, - success: function(details){ - this.cache[code] = details - this.populate(data, details) - }.bind(this), - }) + code: code + }).done(function(details){ + this.cache[code] = details + this.populate(data, details) + }.bind(this)) }, populate: function(data, details){ |
