From 88ab9f9348109310168a71e6d3eca295ff52ef8d Mon Sep 17 00:00:00 2001 From: Igor Vaynberg Date: Thu, 21 Jun 2012 22:08:56 -0700 Subject: [PATCH] define term and context. fixes #148 --- select2.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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();