Bug Tracker

Modify

Ticket #5523 (closed bug: duplicate)

Opened 4 years ago

Last modified 3 years ago

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:
Blocking: Blocked by:

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;

}

Change History

comment:1 Changed 3 years ago by snover

  • Status changed from new to closed
  • Resolution set to duplicate

comment:2 Changed 3 years ago by snover

Duplicate of #7467.

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.