Explorar el Código

Fixes and issue where If args are not present script terminates

Shawn hace 9 años
padre
commit
f3a29b87e1
Se han modificado 1 ficheros con 4 adiciones y 0 borrados
  1. 4 0
      src/js/select2/core.js

+ 4 - 0
src/js/select2/core.js

@@ -357,6 +357,10 @@ define([
       'select': 'selecting',
       'unselect': 'unselecting'
     };
+    
+    if (args === undefined) {
+      args = {};
+    }
 
     if (name in preTriggerMap) {
       var preTriggerName = preTriggerMap[name];