We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 06987f8 commit 1c00a45Copy full SHA for 1c00a45
app/code/Magento/Checkout/view/frontend/web/js/model/full-screen-loader.js
@@ -4,9 +4,10 @@
4
*/
5
/*jshint browser:true jquery:true*/
6
/*global alert*/
7
-define(
8
- ['jquery'],
9
- function ($) {
+define([
+ 'jquery',
+ 'rjsResolver'
10
+], function ($, resolver) {
11
'use strict';
12
13
var containerId = '#checkout';
@@ -22,9 +23,14 @@ define(
22
23
24
/**
25
* Stop full page loader action
26
+ *
27
+ * @param {Boolean} forceStop
28
- stopLoader: function () {
- $(containerId).trigger('processStop');
29
+ stopLoader: function (forceStop) {
30
+ var $elem = $(containerId),
31
+ stop = $elem.trigger.bind($elem, 'processStop');
32
+
33
+ forceStop ? stop() : resolver(stop);
34
}
35
};
36
0 commit comments