Page MenuHomePhabricator

D8037.diff
No OneTemporary

D8037.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,9 @@
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, 3:22 AM (22 h, 5 m)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6678135
Default Alt Text
D8037.diff (696 B)

Event Timeline