Explorar o código

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

Nicolas Cardelino %!s(int64=5) %!d(string=hai) anos
pai
achega
609a802331
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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));