input-pill: Wrap "values" in IIFE.

The function should execute initially and return a function, not
be a function that when executed returns another function. This
fixes an existing bug.
This commit is contained in:
Brock Whittaker 2017-12-18 10:52:33 -08:00 committed by showell
parent 511f2f3db4
commit 8ea39d2609
1 changed files with 2 additions and 2 deletions

View File

@ -199,7 +199,7 @@ var input_pill = function ($parent) {
}()),
// returns all human-readable values.
values: function () {
values: (function () {
var values = [];
return function () {
if (store.lastUpdated >= store.lastCreated.values) {
@ -211,7 +211,7 @@ var input_pill = function ($parent) {
return values;
};
},
}()),
};
(function events() {