Posts Tagged ‘ExtJS’

Passing arguments to javascript framework function

This is a very useful trick that I learnt today:

http://www.fusioncube.net/index.php/javascript-argument-collections-within-closures

I was also struggling to pass the arguments to Ext.MessageBox and this really helps.

The key is to use the apply function and pass the arguments in array format that is stored inside arguments variable.