Engine for Web Applications

package

version 2.0.0

Global utilities.

This class resides in the global namespace. This class participates in the engine library.

Index

Example Index

Examples

Using a Package

Shows how to create and use a new package.

Example Code

Package("MyCompany.Products.Widgets");
MyCompany.Products.Widgets.TheWidget = {
   this.CustomFunction = function(){
      /* ... */
   };
};
var MyWidget = new MyCompany.Products.Widgets.TheWidget();

VerifyPackage

Demonstrates how to verify if a package exists.

Example Code

if( VerifyPackage("MyCompany.Products.Widgets") ){
   /* ... */
};