steal.setContextual
{function()}
Create a module that is aware of its parent module.
steal.setContextual(moduleName, definer)
Parameters
-
moduleName
{String}The name of the contextual module.
-
definer
{function() | String}Either a function defining the module or a moduleName to import which defines the module.
Use
Modules may want to modify their behavior based on the module that is importing them. One example would be for normalization: