Skip to main content

Bug Tracker

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;

}

Attachments (0)
Change History (2)

Changed November 19, 2010 06:44AM UTC by snover comment:1

resolution: → duplicate
status: newclosed

Changed November 19, 2010 06:44AM UTC by snover comment:2

Duplicate of #7467.