Skip to content

Instantly share code, notes, and snippets.

@wenbing
Created June 13, 2013 02:09
Show Gist options
  • Save wenbing/5770751 to your computer and use it in GitHub Desktop.
Save wenbing/5770751 to your computer and use it in GitHub Desktop.
var Y = require('yui').YUI({ useSync: true, debug: true, filter: 'debug' });
Y.use('base');
Y.Base.thisis = 'a';
// print 'a'
Y.log(Y.Base.thisis);
/**
* set force=true with applyConfig
* if load again, Y.Base will be new
*/
Y.applyConfig({ force: ['base'] })
// print 'a' too
Y.log(Y.Base.thisis)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment