Explorar o código

Remove references to `jQuery.Events`, replace with the closure dollar variable.

Kevin Chung %!s(int64=12) %!d(string=hai) anos
pai
achega
7be0e509ff
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      select2.js

+ 2 - 2
select2.js

@@ -926,7 +926,7 @@
 
             if (this.opened()) return false;
 
-            event = jQuery.Event("open");
+            event = $.Event("open");
             this.opts.element.trigger(event);
             return !event.isDefaultPrevented();
         },
@@ -1020,7 +1020,7 @@
             this.results.empty();
             this.clearSearch();
 
-            this.opts.element.trigger(jQuery.Event("close"));
+            this.opts.element.trigger($.Event("close"));
         },
 
         // abstract