Ver Fonte

Fixed AjaxAdapter's super constructor call

Replaced ArrayAdapter super constructor call with correct AjaxAdapter super constructor call. This will allow users to initialize an Ajax select with data.
Jason há 10 anos atrás
pai
commit
da5a72c3ac
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      src/js/select2/data/ajax.js

+ 1 - 1
src/js/select2/data/ajax.js

@@ -10,7 +10,7 @@ define([
       this.processResults = this.ajaxOptions.processResults;
     }
 
-    ArrayAdapter.__super__.constructor.call(this, $element, options);
+    AjaxAdapter.__super__.constructor.call(this, $element, options);
   }
 
   Utils.Extend(AjaxAdapter, ArrayAdapter);