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
Fri, Dec 27, 4:22 PM (6 h, 49 m)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6932488
Default Alt Text
D8037.id18181.diff (683 B)

Event Timeline