Skip to content

Commit 15ff4d2

Browse files
angelomaragnamage2pratik
authored andcommitted
Update template.js
Uniform jquery variable to "$" as this javascript is partially using "jquery" and partially "$". The line 62 will cause an error in Internet Explorer if $ is not declared.
1 parent f06f52c commit 15ff4d2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/web/mage/utils/template.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ define([
77
'underscore',
88
'mage/utils/objects',
99
'mage/utils/strings'
10-
], function (jQuery, _, utils, stringUtils) {
10+
], function ($, _, utils, stringUtils) {
1111
'use strict';
1212

1313
var tmplSettings = _.templateSettings,
@@ -172,7 +172,7 @@ define([
172172

173173
if (isTemplate(value)) {
174174
list[key] = render(value, tmpl, castString);
175-
} else if (jQuery.isPlainObject(value) || Array.isArray(value)) {
175+
} else if ($.isPlainObject(value) || Array.isArray(value)) {
176176
_.each(value, iterate);
177177
}
178178
});

0 commit comments

Comments
 (0)