Selaa lähdekoodia

Use Array.isArray instead of $.isArray (#725)

Nicolas Cardelino 5 vuotta sitten
vanhempi
commit
609a802331
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      src/js/bootstrap-switch.js

+ 1 - 1
src/js/bootstrap-switch.js

@@ -265,7 +265,7 @@ function prvformHandler() {
 }
 
 function prvgetClasses(classes) {
-  if (!$.isArray(classes)) {
+  if (!Array.isArray(classes)) {
     return [this::prvgetClass(classes)];
   }
   return classes.map(v => this::prvgetClass(v));