瀏覽代碼

add zepto compatibiliy

Fede Isas 11 年之前
父節點
當前提交
337fac620e
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      select2.js

+ 1 - 1
select2.js

@@ -20,7 +20,7 @@ the specific language governing permissions and limitations under the Apache Lic
 */
 (function ($) {
     if(typeof $.fn.each2 == "undefined") {
-        $.fn.extend({
+        $.extend($.fn, {
             /*
             * 4-10 times faster .each replacement
             * use it carefully, as it overrides jQuery context of element on each iteration