Side navigation
#5523 closed bug (duplicate)
Opened November 17, 2009 01:58PM UTC
Closed November 19, 2010 06:44AM UTC
Last modified November 19, 2010 06:44AM UTC
overrided toString not copied in IE by $.extend
Reported by: | haayman | Owned by: | |
---|---|---|---|
Priority: | major | Milestone: | 1.4 |
Component: | core | Version: | 1.3.2 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
IE skips the 'toString' method in a for( var attr in objext ) loop. (http://webreflection.blogspot.com/2007/07/quick-fix-internet-explorer-and.html) therefore when an object is extended by $.extend, a toString method is not copied.
fix on line 605 in version 1.3.2 add
if( options.toString != {}.toString ) {
// copy any overruled toString method
target.toString = options.toString;
}