Skip to content

Commit 88ab9f9

Browse files
author
Igor Vaynberg
committed
define term and context. fixes select2#148
1 parent e85d131 commit 88ab9f9

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

select2.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -858,7 +858,9 @@
858858
below, // pixels the element is below the scroll fold, below==0 is when the element is starting to be visible
859859
offset = -1, // index of first element without data
860860
page = this.resultsPage + 1,
861-
self=this;
861+
self=this,
862+
term=this.search.val(),
863+
context=this.context;
862864

863865
if (more.length === 0) return;
864866
below = more.offset().top - results.offset().top - results.height();

0 commit comments

Comments
 (0)