Explorar el Código

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 hace 10 años
padre
commit
da5a72c3ac
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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);