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 @@ -139,22 +139,17 @@ define([
139
139
*/
140
140
_createVideoData : function ( inputData , isJSON ) {
141
141
var videoData = { } ,
142
- key ,
143
142
dataUrl ,
144
143
tmpVideoData ,
145
144
tmpInputData ,
146
- inputDataKeys ,
147
145
i ;
148
146
149
147
if ( isJSON ) {
150
148
inputData = $ . parseJSON ( inputData ) ;
151
149
}
152
150
153
- inputDataKeys = Object . keys ( inputData ) ;
154
-
155
- for ( i = 0 ; i < inputDataKeys . length ; i ++ ) {
156
- key = inputDataKeys [ i ] ;
157
- tmpInputData = inputData [ key ] ;
151
+ for ( i = 0 ; i < inputData . length ; i ++ ) {
152
+ tmpInputData = inputData [ i ] ;
158
153
dataUrl = '' ;
159
154
tmpVideoData = {
160
155
mediaType : '' ,
@@ -177,7 +172,7 @@ define([
177
172
tmpVideoData . provider = dataUrl . type ;
178
173
}
179
174
180
- videoData [ key ] = tmpVideoData ;
175
+ videoData [ i ] = tmpVideoData ;
181
176
}
182
177
183
178
return videoData ;
You can’t perform that action at this time.
0 commit comments