Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F14448281
D8037.id18181.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
683 B
Referenced Files
None
Subscribers
None
D8037.id18181.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D8037: Fix JavaScript exception when having users with special names
Attached
Detach File
Event Timeline
Log In to Comment