Skip to content

Commit b57a9a2

Browse files
author
Stanislav Idolov
authored
ENGCOM-2589: [Backport] Update template.js #17202
2 parents bd28511 + 689fd96 commit b57a9a2

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

lib/web/mage/utils/template.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,15 @@
22
* Copyright © Magento, Inc. All rights reserved.
33
* See COPYING.txt for license details.
44
*/
5+
6+
/* eslint-disable no-shadow */
7+
58
define([
69
'jquery',
710
'underscore',
811
'mage/utils/objects',
912
'mage/utils/strings'
10-
], function (jQuery, _, utils, stringUtils) {
13+
], function ($, _, utils, stringUtils) {
1114
'use strict';
1215

1316
var tmplSettings = _.templateSettings,
@@ -172,7 +175,7 @@ define([
172175

173176
if (isTemplate(value)) {
174177
list[key] = render(value, tmpl, castString);
175-
} else if (jQuery.isPlainObject(value) || Array.isArray(value)) {
178+
} else if ($.isPlainObject(value) || Array.isArray(value)) {
176179
_.each(value, iterate);
177180
}
178181
});

0 commit comments

Comments
 (0)