Permalink
Browse files

quick fix to pass the failing test

quick fix to pass the failing test
  • Loading branch information...
Cristian Carlesso Cristian Carlesso
Cristian Carlesso authored and Cristian Carlesso committed Aug 20, 2012
1 parent b5b63db commit 015662f3406d2c1f05aac4b385aeafcd99cd57f0
Showing with 1 addition and 0 deletions.
  1. +1 −0 Source/Element/Element.js
@@ -827,6 +827,7 @@ Element.implement({
self.removeAttribute('id');
var clonedHTML = self.outerHTML;
var cloned = document.createElement('div');
+ if(!keepid) clonedHTML = clonedHTML.replace(/id=[^\ \>]/gim,'');
cloned.innerHTML = clonedHTML;
self.id = oldID;
var clone = cloned.firstChild;

0 comments on commit 015662f

Please sign in to comment.