Skip to content

Instantly share code, notes, and snippets.

@sdesai
Created March 29, 2013 23:48
Show Gist options
  • Save sdesai/5274461 to your computer and use it in GitHub Desktop.
Save sdesai/5274461 to your computer and use it in GitHub Desktop.
"testCloneNode" : function() {
var node = Y.Node.create("<div></div>");
var o1 = Y.clone(node);
try {
o1._node.style;
} catch (e) {
Y.Assert.fail("Barfing accessing clonedNode._node.style (amoungst other properties)");
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment