diff --git a/select2.js b/select2.js index b844b3d6..da5d6a1e 100755 --- a/select2.js +++ b/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();