File tree Expand file tree Collapse file tree 1 file changed +3
-8
lines changed
app/code/Magento/ProductVideo/view/frontend/web/js Expand file tree Collapse file tree 1 file changed +3
-8
lines changed Original file line number Diff line number Diff line change @@ -134,22 +134,17 @@ define([
134
134
*/
135
135
_createVideoData : function ( inputData , isJSON ) {
136
136
var videoData = { } ,
137
- key ,
138
137
dataUrl ,
139
138
tmpVideoData ,
140
139
tmpInputData ,
141
- inputDataKeys ,
142
140
i ;
143
141
144
142
if ( isJSON ) {
145
143
inputData = $ . parseJSON ( inputData ) ;
146
144
}
147
145
148
- inputDataKeys = Object . keys ( inputData ) ;
149
-
150
- for ( i = 0 ; i < inputDataKeys . length ; i ++ ) {
151
- key = inputDataKeys [ i ] ;
152
- tmpInputData = inputData [ key ] ;
146
+ for ( i = 0 ; i < inputData . length ; i ++ ) {
147
+ tmpInputData = inputData [ i ] ;
153
148
dataUrl = '' ;
154
149
tmpVideoData = {
155
150
mediaType : '' ,
@@ -172,7 +167,7 @@ define([
172
167
tmpVideoData . provider = dataUrl . type ;
173
168
}
174
169
175
- videoData [ key ] = tmpVideoData ;
170
+ videoData [ i ] = tmpVideoData ;
176
171
}
177
172
178
173
return videoData ;
You can’t perform that action at this time.
0 commit comments