_internalCallback
- private object
Internal callback to handle multiple internal insert() calls
so that css is inserted prior to js
_useYahooListener
- private object
Use the YAHOO environment listener to detect script load. This
is only switched on for Safari 2.x and below.
dirty
- boolean
Flag to indicate the dependency tree needs to be recomputed
if insert is called again.
Default Value: true
filter
- string|{searchExp: string, replaceStr: string}
Filter to apply to result url. This filter will modify the default
path for all modules. The default path for the YUI library is the
minified version of the files (e.g., event-min.js). The filter property
can be a predefined filter or a custom filter. The valid predefined
filters are:
- debug
- Selects the debug versions of the library (e.g., event-debug.js). This option will automatically include the logger widget
- raw
- Selects the non-minified version of the library (e.g., event.js).
myFilter: { 'searchExp': "-min\\.js", 'replaceStr': "-debug.js" }Note: the default base path for the YUI library is http://yui.yahooapis.com. Only the minified versions of the components are available on this host, so if you choose to use the raw or debug versions of the files, you will have to host these files locally, and change the "base" property.
force
- string
A list of modules that should always be loaded, even
if they have already been inserted into the page.
ignore
- string[]
A list of modules that should not be loaded, even if
they turn up in the dependency tree
loaded
- {string: boolean}
Set when beginning to compute the dependency tree.
Composed of what YAHOO reports to be loaded combined
with what has been loaded by the tool
loadOptional
- boolean
Whether or not to load optional dependencies for
the requested modules
Default Value: false
skin
- object
Provides the information used to skin the skinnable components.
The following skin definition would result in 'skin1' and 'skin2'
being loaded for calendar (if calendar was requested), and
'sam' for all other skinnable components:
skin: {
// The default skin, which is automatically applied if not
// overriden by a component-specific skin definition.
// Change this in to apply a different skin globally
defaultSkin: 'sam',
// This is combined with the loader base property to get
// the default root directory for a skin. ex:
// http://yui.yahooapis.com/2.3.0/build/assets/skins/sam/
base: 'assets/skins/',
// The name of the rollup css file for the skin
path: 'skin.css',
// The number of skinnable components requested that are
// required before using the rollup file rather than the
// individual component css files
rollup: 3,
// Any component-specific overrides can be specified here,
// making it possible to load different skins for different
// components. It is possible to load more than one skin
// for a given component as well.
overrides: {
calendar: ['skin1', 'skin2']
}
}
sorted
- string[]
All of the derived dependencies in sorted order, which
will be populated when either calculate() or insert()
is called
varName
- string
The name of the variable in a sandbox or script node
(for external script support in Safari 2.x and earlier)
to reference when the load is complete. If this variable
is not available in the specified scripts, the operation will
fail.