how do arguments work with dojo.connect?
- by sprugman
I've read the docs, but I must be missing something. I've got a grid, I want to connect to the event that fires when the column headers are clicked for sorting, thus:
dojo.addOnLoad(function(){
var grid = dijit.byId("grid");
dojo.connect(grid, "setSortInfo", 'afterSort');
});
function afterSort() {
console.info('after sort');
}
That works fine as far as it goes. I know the setSortInfo method has an argument which is the column number. How do I get that value? I've tried putting a parameter in the sig for afterSort to no avail. The docs say "the method receives the same arguments as the event", but where are they???