Skip to content

Instantly share code, notes, and snippets.

@apipkin
Created March 2, 2010 14:59
Show Gist options
  • Save apipkin/319560 to your computer and use it in GitHub Desktop.
Save apipkin/319560 to your computer and use it in GitHub Desktop.
// when i do
Y.delegate('click',function(e){},Y.one('body'),Y.one('form'));
// It stops in Substitute.replace()
replace: function(newNode) { // newNode = /[|:,]/g
var node = this._node; // this._node = form
node.parentNode.replaceChild(newNode, node); // fails! "Node cannot be inserted at the specified point in the hierarchy" code: "3"
return this;
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment