Browse Source

export classes, issue #13

Igor Vaynberg 13 years ago
parent
commit
bf25e5e7e4
1 changed files with 14 additions and 6 deletions
  1. 14 6
      select2.js

+ 14 - 6
select2.js

@@ -267,12 +267,6 @@
         };
     }
 
-    // exports
-    window.Select2 = {query: {}, util: {}};
-    window.Select2.util.debounce = debounce;
-    window.Select2.query.ajax = ajax;
-    window.Select2.query.local = local;
-
     /**
      * blurs any Select2 container that has focus when an element outside them was clicked or received focus
      */
@@ -1247,4 +1241,18 @@
         return (value === undefined) ? this : value;
     };
 
+    // exports
+    window.Select2 = {
+        query: {
+            ajax: ajax,
+            local: local
+        }, util: {
+            debounce: debounce
+        }, "class": {
+            abstract: AbstractSelect2,
+            single: SingleSelect2,
+            multi: MultiSelect2
+        }
+    };
+
 }(jQuery));