Jump to navigation

Class: RequireScript

RequireScript

new RequireScript(file, fdeps, callback)

Keep track of loading status of a script and its dependencies

Parameters:
Name Type Description
file String

name of script

fdeps Array.<String>

Scripts which this one depends on

callback function
Properties:
Name Type Description
file String

Name of script

loaded Boolean

Has the script been loaded yet?

executed Boolean

Has the script been run?

backdeps Array.<String>

Scripts which depend on this one (need this one to run first)

fdeps Array.<String>

Scripts which this one depends on (it must run after them)

callback function

The function to run when all this script's dependencies have run (this is the script itself)

Source: