From f9be7778335604fb051fb41d1ad5a31512f2529b Mon Sep 17 00:00:00 2001 From: Vladislav Zarakovsky Date: Sun, 13 Mar 2016 13:02:33 +0300 Subject: [PATCH] Make awesomplete instance awailable on input element --- awesomplete.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/awesomplete.js b/awesomplete.js index fe8e466c..0a56d8f8 100644 --- a/awesomplete.js +++ b/awesomplete.js @@ -103,7 +103,7 @@ var _ = function (input, o) { this.list = this.input.getAttribute("data-list") || o.list || []; } - _.all.push(this); + _.all.push(this.input.awesomplete = this); }; _.prototype = {