Permalink
Browse files

Merge pull request #14 from sanjayginde/clean-content-event-fix

Updated 'getCleanContent' in api to not clone events when cloning nodes.
  • Loading branch information...
delambo committed Jun 1, 2012
2 parents d5202d4 + 366577c commit 3d2e4b2ef2886cd9079836e25b059e1e1af50891
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/ice.js
View
@@ -380,9 +380,9 @@ InlineChangeEditor.prototype = {
if(typeof body === 'string')
body = ice.dom.create('<div>' + body + '</div>');
else
- body = ice.dom.cloneNode(body)[0];
+ body = ice.dom.cloneNode(body, false)[0];
} else {
- body = ice.dom.cloneNode(this.element)[0];
+ body = ice.dom.cloneNode(this.element, false)[0];
}
var changes = ice.dom.find(body, classList);
ice.dom.each(changes, function(el, i) {

0 comments on commit 3d2e4b2

Please sign in to comment.