dojox/geo/openlayers/Patch (version 1.10)

See the dojox/geo/openlayers/Patch reference documentation for more information.

Method Summary

  • patchGFX()
  • 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.

Methods

patchGFX()
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.

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

the type to patch.

method String

the method name.

execBefore Function

the function to execute before the legacy implementation.

execAfter Function

the function to execute after the legacy implementation.

Error in the documentation? Can’t find what you are looking for? Let us know!