Other Examples
The following examples also use AddMethod:
this.AddMethod("InvokeMethod", function(){console.log("In Invoke Method of PM"),
{override: true});
this.AddMethod("InvokeControlMethod",
DerivedPresentationalModel.prototype.MyInvokeControlMethod,{sequence : true});
For more information, see Deriving Presentation Models, Physical Renderers, and Plug-in Wrappers.