Skip to content

Commit 689fd96

Browse files
ENGCOM-2589: [Backport] Update template.js #17202
- Merge Pull Request #17202 from mage2pratik/magento2:2.1-develop-PR-port-17129 - Merged commits: 1. 15ff4d2 2. 24f87cc
2 parents bd28511 + 24f87cc commit 689fd96

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)