Object | +--helma.Aspects
Defined in Aspects.js
| SUMMARY: Constructor | Properties | Methods | DETAIL: Constructor | Properties | Methods |
| Constructor Summary | |
helma.Aspects()
Library for adding Aspects Provides static methods to wrap existing functions inside a javascript closure in order to add additional behavior without overriding the existing one. |
|
| Methods Summary | |
Function
|
addAfter(<Object> obj, <String> fname, <Function> after)
Adds a function to be called after an existing function. |
Function
|
addAround(<Object> obj, <String> fname, <Function> around)
Wraps an additional function around the original function. |
Function
|
addBefore(<Object> obj, <String> fname, <Function> before)
Adds a function to be called before the orginal function. |
| Constructor Detail |
helma.Aspects()
| Method Detail |
Function addAfter(<Object> obj, <String> fname, <Function> after)
obj - as Object, the object of which the original function is a property
fname - as String, the property name of the original function
after - as Function, the function to be called after the original function
Function addAround(<Object> obj, <String> fname, <Function> around)
obj - as Object, the object of which the original function is a property
fname - as String, the property name of the original function
around - as Function, the function to be called inside the original function
Function addBefore(<Object> obj, <String> fname, <Function> before)
obj - The object of which the original function is a property
fname - The property name of the original function
before - The function to be called before the original function
| SUMMARY: Constructor | Properties | Methods | DETAIL: Constructor | Properties | Methods |