Skip to content

Commit d2d750a

Browse files
g-patelAurelioDeRosa
authored andcommitted
clone: Fixed a minor typo
Closes jquerygh-963
1 parent c15623e commit d2d750a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

entries/clone.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ $( ".hello" ).clone().appendTo( ".goodbye" );
6363
<p>However, objects and arrays within element data are not copied and will continue to be shared between the cloned element and the original element. To deep copy all data, copy each one manually:</p>
6464
<pre><code>
6565
// Original element with attached data
66-
var $elem = $( "#elem" ).data( "arr": [ 1 ] ),
66+
var $elem = $( "#elem" ).data( "arr", [ 1 ] ),
6767
$clone = $elem.clone( true )
6868
// Deep copy to prevent data sharing
6969
.data( "arr", $.extend( [], $elem.data( "arr" ) ) );

0 commit comments

Comments
 (0)