ibm_ilog.diagram._base.gfxext
Object » ibm_ilog.diagram._base.gfxext
dojo.require("ibm_ilog.diagram._base.gfxext");
Method Summary
- patchMethod(type, method, execBefore, execAfter) Patches the specified method of the given type so that the 'execBefore' (resp. 'execAfter') function is called before (resp. after) invoking the legacy implementation.
- propagateChange(source, reason)
Methods
The execBefore function is invoked with the following parameter: execBefore(method, arguments) where 'method' is the patched method name and 'arguments' the arguments received by the legacy implementation. The execAfter function is invoked with the following parameter: execBefore(method, returnValue, arguments) where 'method' is the patched method name, 'returnValue' the value returned by the legacy implementation and 'arguments' the arguments received by the legacy implementation.
Parameter | Type | Description |
---|---|---|
type | Object | Object: the type to patch. |
method | String | String: the method name. |
execBefore | Function | Function: the function to execute before the legacy implementation. |
execAfter | Function | Function: the function to execute after the legacy implementation. |