MessageManager.addBundle Member
Syntax
object.addBundle(bundlePath, targetWindow);
Arguments
Argument | Summary |
---|---|
bundlePath | |
targetWindow |
Returns
Remarks
See Also
Source Code
function mm_addbundle(bundlePath, targetWindow)
{
var bundle = srGetStrBundle(bundlePath);
this.bundleList.push(bundle);
// The bundle will load if the file doesn't exist. This will fail though.
// We want to be clean and remove the bundle again.
try
{
this.importBundle(bundle, targetWindow, this.bundleList.length - 1);
}
catch (exception)
{
// Clean up and return the exception.
this.bundleList.pop();
throw exception;
}
return bundle;
}