Skip to content

Commit

Permalink
Merge pull request #226 from magento-webdev/PR
Browse files Browse the repository at this point in the history
[WebDev] Bugfixes
  • Loading branch information
Momotenko,Natalia(nmomotenko) committed Dec 4, 2015
2 parents bf4e733 + 00e4628 commit 7b831ff
Show file tree
Hide file tree
Showing 10 changed files with 928 additions and 899 deletions.
21 changes: 17 additions & 4 deletions app/code/Magento/Checkout/view/frontend/web/js/view/cart/totals.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,31 @@
* Copyright © 2015 Magento. All rights reserved.
* See COPYING.txt for license details.
*/
/*global define*/
define(
[
'uiComponent',
'Magento_Checkout/js/model/totals'
'Magento_Checkout/js/model/totals',
'Magento_Checkout/js/model/shipping-service'
],
function (Component, totalsService) {
function (Component, totalsService, shippingService) {
'use strict';

return Component.extend({

isLoading: totalsService.isLoading
isLoading: totalsService.isLoading,

/**
* @override
*/
initialize: function () {
this._super();
totalsService.totals.subscribe(function () {
window.dispatchEvent(new Event('resize'));
});
shippingService.getShippingRates().subscribe(function () {
window.dispatchEvent(new Event('resize'));
});
}
});
}
);
Loading

0 comments on commit 7b831ff

Please sign in to comment.