Class Function
| Package: | Global |
| Class: | Function |
| Extends: | Object |
| Clientlib: | cq.widgets |
These functions are available on every Function object (any JavaScript function).
Public Properties
This class has no public properties.
Public Methods
| |
createSequence( Function fcn, [Object scope] ) : Function
Create a combined function call sequence of the original function + the passed function.
The resulting function retur...
Create a combined function call sequence of the original function + the passed function.
The resulting function returns the results of the original function.
The passed fcn is called with the parameters of the original function. Example usage:
var sayHi = function(name){
alert('Hi, ' + name);
}
sayHi('Fred'); // alerts "Hi, Fred"
var sayGoodbye = sayHi.createSequence(function(name){
alert('Bye, ' + name);
});
sayGoodbye('Fred'); // both alerts show
|
Function |
Public Events
This class has no public events.