Skip to main content

Bug Tracker

Side navigation

#6957 closed bug (invalid)

Opened August 27, 2010 08:48AM UTC

Closed August 28, 2010 02:42AM UTC

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

}

Attachments (0)
Change History (2)

Changed August 27, 2010 08:54AM UTC by hikebrant comment:1

version is jquery-1.4.2

Changed August 28, 2010 02:42AM UTC by dmethvin comment:2

resolution: → invalid
status: newclosed

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