File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed
app/code/Magento/Ui/view/base/web/js/grid
dev/tests/js/jasmine/tests/app/code/Magento/Ui/base/js/grid Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -100,7 +100,7 @@ define([
100
100
}
101
101
102
102
//initialize row observables
103
- this . rows ( ) . forEach ( function ( image , index ) {
103
+ this . rows ( ) . forEach ( function ( image ) {
104
104
image . styles = ko . observable ( { } ) ;
105
105
image . css = ko . observable ( { } ) ;
106
106
} ) ;
@@ -209,15 +209,15 @@ define([
209
209
this . conditionCallback (
210
210
function ( ) {
211
211
return $ ( images ) . length === 0 ;
212
- } . bind ( this ) ,
212
+ } ,
213
213
function ( ) {
214
214
$ ( images ) . last ( ) . load ( function ( ) {
215
215
this . setLayoutStyles ( ) ;
216
216
} . bind ( this ) ) . each ( function ( ) {
217
217
if ( this . complete ) {
218
218
$ ( this ) . load ( ) ;
219
219
}
220
- } ) ; ;
220
+ } ) ;
221
221
} . bind ( this ) ) ;
222
222
} ,
223
223
Original file line number Diff line number Diff line change 3
3
* See COPYING.txt for license details.
4
4
*/
5
5
6
+ /*eslint max-nested-callbacks: 0*/
6
7
define ( [
7
8
'Magento_Ui/js/grid/masonry' ,
8
9
'jquery'
@@ -29,10 +30,10 @@ define([
29
30
30
31
describe ( 'check initComponent' , function ( ) {
31
32
it ( 'verify setLayoutstyles called and grid iniztilized' , function ( ) {
32
-
33
+ expect ( model ) . toBeDefined ( ) ;
33
34
} ) ;
34
35
it ( 'verify events triggered' , function ( ) {
35
-
36
+ expect ( model ) . toBeDefined ( ) ;
36
37
} ) ;
37
38
} ) ;
38
39
} ) ;
You can’t perform that action at this time.
0 commit comments