cascade( Function fn, [Object scope], [Array args] ) : Ext.Container
Cascades down the component/container heirarchy from this component (called first), calling the specified function with each component. The scope (
this) of function call will be the scope provided or the current component. The arguments to the function will be the args provided or the current component. If the function returns false at any point, the cascade is stopped on that branch.
Parameters:
- fn : FunctionThe function to call
- scope : Object(optional) The scope of the function (defaults to current component)
- args : Array(optional) The args to call the function with (defaults to passing the current component)
Returns:
this
If you pass true as the second parameter then there is
true.getXType() ...
within the function.
Does the "true" object have this method? No, it doesn't.
If you pass false then the scope of function will be a current component because of
cascade : function(fn, scope, args){
if(fn.apply(scope || this, args || [this]) !== false){
...
(false || this) will be this.