git.asbjorn.biz
/
jquery.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
100ed68
)
Make sure that the node exists before attempting to clone.
author
jeresig
<jeresig@gmail.com>
Thu, 17 Dec 2009 18:15:12 +0000
(13:15 -0500)
committer
jeresig
<jeresig@gmail.com>
Thu, 17 Dec 2009 18:15:12 +0000
(13:15 -0500)
src/manipulation.js
patch
|
blob
|
history
diff --git
a/src/manipulation.js
b/src/manipulation.js
index
17cfa84
..
d5523dd
100644
(file)
--- a/
src/manipulation.js
+++ b/
src/manipulation.js
@@
-279,7
+279,7
@@
function cloneCopyEvent(orig, ret) {
var i = 0;
ret.each(function(){
- if ( this.nodeName !== orig[i].nodeName ) {
+ if ( this.nodeName !== (orig[i] && orig[i].nodeName) ) {
return;
}