Bug Tracker

Ticket #3162 (assigned bug)

Opened 6 months ago

Last modified 5 months ago

Typo in clone function causes error in IE

Reported by: hjess Assigned to: flesler (accepted)
Type: bug Priority: major
Milestone: 1.3 Component: core
Version: 1.2.6 Keywords:
Cc: Needs: Test Case

Description

After "ret" is assigned as the result of "this.map", events are processed according to "this", rather than to "ret".

Attachments

jquery.diff (0.8 kB) - added by hjess 6 months ago.
diff file

Change History

Changed 6 months ago by hjess

diff file

Changed 6 months ago by flesler

  • need changed from Review to Test Case

Eh.. I'm not sure that's wrong. I really can't follow that piece of code completely.

Can you provide a test case that shows the situation where this causes an error ? Just a simple html file with the needed js.

Thanks

Changed 6 months ago by zimbatm

After "ret" is assigned as the result of "this.map", events are processed according to "this", rather than to "ret".

Yes, because events are copied from this to the cloned elements. This is why this and it's childs must be visited.

Changed 5 months ago by flesler

  • owner set to flesler
  • status changed from new to assigned

Will check this out more closely when I get some time.

Note: See TracTickets for help on using tickets.