Global utilities.
This class resides in the global namespace. This class participates in the engine library.
Shows how to create and use a new package.
Package("MyCompany.Products.Widgets");
MyCompany.Products.Widgets.TheWidget = {
this.CustomFunction = function(){
/* ... */
};
};
var MyWidget = new MyCompany.Products.Widgets.TheWidget();Demonstrates how to verify if a package exists.
if( VerifyPackage("MyCompany.Products.Widgets") ){
/* ... */
};