Page MenuHomePhabricator

D8037.id18181.diff
No OneTemporary

D8037.id18181.diff

Index: webroot/rsrc/externals/javelin/lib/control/typeahead/source/TypeaheadSource.js
===================================================================
--- webroot/rsrc/externals/javelin/lib/control/typeahead/source/TypeaheadSource.js
+++ webroot/rsrc/externals/javelin/lib/control/typeahead/source/TypeaheadSource.js
@@ -185,7 +185,8 @@
this._raw[obj.id] = obj;
var t = this.tokenize(obj.tokenizable || obj.name);
for (var jj = 0; jj < t.length; ++jj) {
- this._lookup[t[jj]] = this._lookup[t[jj]] || [];
+ if (!this._lookup.hasOwnProperty(t[jj]))
+ this._lookup[t[jj]] = [];
this._lookup[t[jj]].push(obj.id);
}
},

File Metadata

Mime Type
text/plain
Expires
Mon, Oct 7, 5:19 AM (19 h, 57 m)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6678345
Default Alt Text
D8037.id18181.diff (683 B)

Event Timeline