Passing arguments to javascript framework function

This is a very useful trick that I learnt today:

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.

Leave a Reply