mirror of https://github.com/zulip/zulip.git
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:
parent
511f2f3db4
commit
8ea39d2609
|
@ -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() {
|
||||
|
|
Loading…
Reference in New Issue