Skip to content

Commit

Permalink
define term and context. fixes select2#148
Browse files Browse the repository at this point in the history
  • Loading branch information
Igor Vaynberg committed Jun 22, 2012
1 parent e85d131 commit 88ab9f9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion select2.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 88ab9f9

Please sign in to comment.