UseYUI-for-RequireJS
UseYUI-for-RequireJS copied to clipboard
UseYUI is a plugin for RequireJS, that let's you load YUI 3 into requireJS application.
UseYUI is a plugin for RequireJS, that let's you load YUI 3 into requireJS application.
version 0.1 author Wilco Fiers [email protected] license New BSD License copyright Wilco Fiers, 2011
By coma seperating the module names you want YUI to preload you can chain multiple YUI dependencies to a single instance of YUI. Example:
UseYUI looks for the YUI property if you've used an options object on RequireJS. To include YUI, you can either load YUI before requiring modules, or use the config options in RequireJS to have it load YUI for you. The same RequireJS config property also allows you to pass a config option to YUI. Use either one of the following methods: