From f15583a5550a6f4289d9c8088873bfd2ba18f46f Mon Sep 17 00:00:00 2001 From: Igor Vaynberg Date: Sat, 9 Feb 2013 20:22:21 -0800 Subject: [PATCH] make query() aware of the element select2 is attached to. fixes #561 --- select2.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/select2.js b/select2.js index 34d25154..ecd079ef 100644 --- a/select2.js +++ b/select2.js @@ -1288,6 +1288,7 @@ the specific language governing permissions and limitations under the Apache Lic if (below <= this.opts.loadMorePadding) { more.addClass("select2-active"); this.opts.query({ + element: this.opts.element, term: term, page: page, context: context, @@ -1382,6 +1383,7 @@ the specific language governing permissions and limitations under the Apache Lic this.resultsPage = 1; opts.query({ + element: opts.element, term: search.val(), page: this.resultsPage, context: null,