Class createjs.ScriptFactory
Defined in: script_factory.js.
Constructor Attributes | Constructor Name and Description |
---|---|
A class that creates HTMLScriptElement objects.
|
Method Attributes | Method Name and Description |
---|---|
<static> |
createjs.ScriptFactory.exist(path)
Retrieves whether this factory already has spooled an HTMLScriptElement
object for the specified path.
|
<static> |
createjs.ScriptFactory.get(path, text)
Retrieves an HTMLImageElement object spooled by the createjs.ScriptFactory
object.
|
<static> |
createjs.ScriptFactory.reset(opt_destroy)
Deletes all scripts spooled by the createjs.ScriptFactory object.
|
Method Detail
<static>
{HTMLScriptElement}
createjs.ScriptFactory.exist(path)
Retrieves whether this factory already has spooled an HTMLScriptElement
object for the specified path.
- Parameters:
- {string} path
- Returns:
- {HTMLScriptElement}
<static>
{HTMLScriptElement}
createjs.ScriptFactory.get(path, text)
Retrieves an HTMLImageElement object spooled by the createjs.ScriptFactory
object.
- Parameters:
- {string} path
- {string} text
- Returns:
- {HTMLScriptElement}
<static>
createjs.ScriptFactory.reset(opt_destroy)
Deletes all scripts spooled by the createjs.ScriptFactory object.
- Parameters:
- {boolean=} opt_destroy