Bug Tracker

Modify

Ticket #6957 (closed bug: invalid)

Opened 3 years ago

Last modified 3 years ago

clone bug in demos\sortable\portlets.html

Reported by: hikebrant Owned by:
Priority: Milestone: 1.4.3
Component: core Version: 1.4.2
Keywords: Stack overflow Cc:
Blocking: Blocked by:

Description

first:

drag one element(.portlet)

second:

execute code: $(".portlet:first").clone(true);

now:bug appeared.it throw an "Stack overflow" exception.

source code:

if ( deep && copy && ( jQuery.isPlainObject(copy)
jQuery.isArray(copy) ) ) {
var clone = src && ( jQuery.isPlainObject(src)
jQuery.isArray(src) ) ? src

: jQuery.isArray(copy) ? [] : {};

Never move original objects, clone them target[ name ] = jQuery.extend( deep, clone, copy );bug appeared here!

Don't bring in undefined values }

Change History

comment:1 Changed 3 years ago by hikebrant

version is jquery-1.4.2

comment:2 Changed 3 years ago by dmethvin

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

This should be filed at the jQuery UI bug tracker:  http://dev.jqueryui.com

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.