소스 검색

define term and context. fixes #148

Igor Vaynberg 13 년 전
부모
커밋
88ab9f9348
1개의 변경된 파일3개의 추가작업 그리고 1개의 파일을 삭제
  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();