ExtJS.Bugs

From John's wiki
Revision as of 16:21, 29 May 2008 by Sixsigma (talk | contribs) (New page: == ext-2.0.2\source\util\MixedCollection.js:83-84 == var old = this.map[key]; if ( old ) { Will fail if false boolean values (or other falsey values) are stored in the collection. Sug...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

ext-2.0.2\source\util\MixedCollection.js:83-84

var old = this.map[key];
if ( old ) {

Will fail if false boolean values (or other falsey values) are stored in the collection.

Suggested fix:

var old = this.map[key];
if ( typeof old !== "undefined" ) {