Explorar o código

define term and context. fixes #148

Igor Vaynberg %!s(int64=13) %!d(string=hai) anos
pai
achega
88ab9f9348
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  1. 3 1
      select2.js

+ 3 - 1
select2.js

@@ -858,7 +858,9 @@
                 below, // pixels the element is below the scroll fold, below==0 is when the element is starting to be visible
                 offset = -1, // index of first element without data
                 page = this.resultsPage + 1,
-                self=this;
+                self=this,
+                term=this.search.val(),
+                context=this.context;
 
             if (more.length === 0) return;
             below = more.offset().top - results.offset().top - results.height();