File tree 1 file changed +3
-7
lines changed
1 file changed +3
-7
lines changed Original file line number Diff line number Diff line change 258
258
var element = null ;
259
259
var target = e . target || e . srcElement ;
260
260
261
- while ( target . parentElement !== null ) {
261
+ while ( target . parentNode !== null ) {
262
262
if ( ! ( target instanceof SVGElement ) && target . className . indexOf ( 'waves-effect' ) !== - 1 ) {
263
263
element = target ;
264
264
break ;
265
- } else if ( target . className . indexOf ( 'waves-effect' ) !== - 1 ) {
266
- element = target ;
267
- break ;
268
265
}
269
- target = target . parentElement ;
266
+ target = target . parentNode ;
270
267
}
271
-
272
268
return element ;
273
269
}
274
270
320
316
// to specify them with an options param? Eg. light/classic/button
321
317
if ( element . tagName . toLowerCase ( ) === 'input' ) {
322
318
Effect . wrapInput ( [ element ] ) ;
323
- element = element . parentElement ;
319
+ element = element . parentNode ;
324
320
}
325
321
326
322
if ( 'ontouchstart' in window ) {
You can’t perform that action at this time.
0 commit comments