Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
YUI: pass in raw node OR id in YUI 3
var getNode = function(el) {
//fetch the node by selector, or wrap it in a new YUI Node instance
return'#' + el) || new Y.Node(el);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment