diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2020-09-21 18:11:47 +0200 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2020-09-21 18:11:47 +0200 |
| commit | d906f7303e70adaa75523d8bfc5b46523ccfffa0 (patch) | |
| tree | b0002839ba72a737870b34dddbcb560bb7652847 /StoneIsland/www/js/lib/products/ProductView.js | |
| parent | 3cf5e5a97afe8fc7877b528cf19130bef0d68bad (diff) | |
adding cordova-plugin-advanced-http for all XHR now
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){ |
