Skip to content

Instantly share code, notes, and snippets.

@Ajnasz
Created May 6, 2012 18:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Ajnasz/2623589 to your computer and use it in GitHub Desktop.
Save Ajnasz/2623589 to your computer and use it in GitHub Desktop.
Y.one('body') is null
var YUI = require('yui3').YUI;
YUI().use('nodejs-dom', 'node', 'event', function (Y) {
var document = Y.Browser.document;
var i = Y.Node.create('<i>asdf</i>');
i.addClass('foo');
Y.one('body').append(i);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment