API Docs for: undefined
Show:

YUI Class

Item Index

Methods

Methods

lazyLoad

(
  • modules
  • *callback
)
YUI

Defined in js/lazy-load.js:23

A little helper function for when you want to load more modules into an existing Y instance.

Parameters:

  • modules String multiple

    1-n modules to bind (uses arguments array).

  • *callback Function

    callback 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.