File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -625,14 +625,14 @@ class Blocks extends React.Component {
625
625
exitFunc ( "Custom Modal -- Param 2 must be a object with 'width' and 'height' number properties" ) ;
626
626
}
627
627
if ( isObject ( enterInfo ) ) {
628
- if ( ! scale . name || ! scale . callback ) exitFunc ( "Custom Modal -- Missing name/callback property in Param 3" ) ;
629
- if ( scale . callback && typeof scale . callback !== 'function' ) exitFunc ( "Custom Modal -- callback property in Param 3 must be a function" ) ;
628
+ if ( ! enterInfo . name || ! enterInfo . callback ) exitFunc ( "Custom Modal -- Missing name/callback property in Param 3" ) ;
629
+ if ( enterInfo . callback && typeof enterInfo . callback !== 'function' ) exitFunc ( "Custom Modal -- callback property in Param 3 must be a function" ) ;
630
630
} else {
631
631
exitFunc ( "Custom Modal -- Param 3 must be a object with properties: 'name' (string) and 'callback' (function)" ) ;
632
632
}
633
633
if ( isObject ( closeInfo ) ) {
634
- if ( ! scale . name || ! scale . callback ) exitFunc ( "Custom Modal -- Missing name/callback property in Param 4" ) ;
635
- if ( scale . callback && typeof scale . callback !== 'function' ) exitFunc ( "Custom Modal -- callback property in Param 4 must be a function" ) ;
634
+ if ( ! closeInfo . name || ! closeInfo . callback ) exitFunc ( "Custom Modal -- Missing name/callback property in Param 4" ) ;
635
+ if ( closeInfo . callback && typeof closeInfo . callback !== 'function' ) exitFunc ( "Custom Modal -- callback property in Param 4 must be a function" ) ;
636
636
} else {
637
637
exitFunc ( "Custom Modal -- Param 4 must be a object with properties: 'name' (string) and 'callback' (function)" ) ;
638
638
}
You can’t perform that action at this time.
0 commit comments