Parcourir la source

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 il y a 10 ans
Parent
commit
da5a72c3ac
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  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;
       this.processResults = this.ajaxOptions.processResults;
     }
     }
 
 
-    ArrayAdapter.__super__.constructor.call(this, $element, options);
+    AjaxAdapter.__super__.constructor.call(this, $element, options);
   }
   }
 
 
   Utils.Extend(AjaxAdapter, ArrayAdapter);
   Utils.Extend(AjaxAdapter, ArrayAdapter);