File tree 3 files changed +4
-4
lines changed
Catalog/view/adminhtml/web/catalog
Checkout/view/frontend/web/js/model
3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ define([
47
47
closed : function ( ) {
48
48
var doc = self . iframe . get ( 0 ) . document ;
49
49
50
- if ( doc && $ . isFunction ( doc . execCommand ) ) {
50
+ if ( doc && typeof doc . execCommand === 'function' ) {
51
51
//IE9 break script loading but not execution on iframe removing
52
52
doc . execCommand ( 'stop' ) ;
53
53
self . iframe . remove ( ) ;
Original file line number Diff line number Diff line change @@ -99,7 +99,7 @@ define([
99
99
customAttributesObject ;
100
100
101
101
$ . each ( addrs , function ( key ) {
102
- if ( addrs . hasOwnProperty ( key ) && ! $ . isFunction ( addrs [ key ] ) ) {
102
+ if ( addrs . hasOwnProperty ( key ) && typeof addrs [ key ] !== 'function' ) {
103
103
output [ self . toUnderscore ( key ) ] = addrs [ key ] ;
104
104
}
105
105
} ) ;
Original file line number Diff line number Diff line change @@ -99,7 +99,7 @@ define([
99
99
* @param {HTMLElement } element
100
100
*/
101
101
highlight : function ( element ) {
102
- if ( $ . validator . defaults . highlight && $ . isFunction ( $ . validator . defaults . highlight ) ) {
102
+ if ( $ . validator . defaults . highlight && typeof $ . validator . defaults . highlight === 'function' ) {
103
103
$ . validator . defaults . highlight . apply ( this , arguments ) ;
104
104
}
105
105
$ ( element ) . trigger ( 'highlight.validate' ) ;
@@ -109,7 +109,7 @@ define([
109
109
* @param {HTMLElement } element
110
110
*/
111
111
unhighlight : function ( element ) {
112
- if ( $ . validator . defaults . unhighlight && $ . isFunction ( $ . validator . defaults . unhighlight ) ) {
112
+ if ( $ . validator . defaults . unhighlight && typeof $ . validator . defaults . unhighlight === 'function' ) {
113
113
$ . validator . defaults . unhighlight . apply ( this , arguments ) ;
114
114
}
115
115
$ ( element ) . trigger ( 'unhighlight.validate' ) ;
You can’t perform that action at this time.
0 commit comments