YUI Class
Item Index
Methods
Methods
lazyLoad
(
YUI
-
modules
-
*callback
A little helper function for when you want to load more modules into an existing Y instance.
Parameters:
-
modules
String multiple1-n modules to bind (uses arguments array).
-
*callback
Functioncallback function executed when the instance has the required functionality. If included, it must be the last parameter. This function receives two arguments:
- errors
- This will be an array of error objects if something went wrong. This will be null if everything is okay.
- attached
- This is an object. This object's keys are the names of modules that were attached to this YUI instance during this load. (Virtual rollups aren't listed here.)
Returns:
YUI:
the YUI instance.