File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
app/code/Magento/Catalog/view/adminhtml/web/js Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -32,9 +32,7 @@ define([
32
32
data = { } ,
33
33
parameters = { } ,
34
34
root = { } ,
35
- len = 0 ,
36
- key = '' ,
37
- i = 0 ;
35
+ key = '' ;
38
36
39
37
/* eslint-disable */
40
38
/**
@@ -182,11 +180,14 @@ define([
182
180
* @returns {Object }
183
181
*/
184
182
categoryLoader . buildHashChildren = function ( hash , node ) { // eslint-disable-line no-shadow
183
+ var i = 0 ,
184
+ len ;
185
+
185
186
// eslint-disable-next-line no-extra-parens
186
187
if ( ( node . childNodes . length > 0 ) || ( node . loaded === false && node . loading === false ) ) {
187
188
hash . children = [ ] ;
188
189
189
- for ( var i = 0 , len = node . childNodes . length ; i < len ; i ++ ) {
190
+ for ( i , len = node . childNodes . length ; i < len ; i ++ ) {
190
191
/* eslint-disable */
191
192
if ( ! hash . children ) {
192
193
hash . children = [ ] ;
You can’t perform that action at this time.
0 commit comments