Hi All,

I am trying to fire an event in my JS file to a listener rendered by lazy-initialization code, but the two don't want to talk to each other. Do I need to define a specific scope? They are both rendered on the same page..

JS
Code:
	this.addEvents({'checkactive': true});

        .....

	this.grid.on('rowclick',  function(grid, index, e) {		
		if (sm.getCount() > 0) {
			this.fireEvent('checkactive', 'enabled');						
		} else { 
			this.fireEvent('checkactive', 'disabled');						
		}
	}, this);
In my JSON lazy initialization code:

Code:
	buttons: [{
		"text": "Submit",
		"type": "button",
		"scope": this,
		"handler": function(){ submit(); },
		"listeners": {
	  			 "checkactive": function(isenabled) {
						alert(isenabled);				
				},
				scope:this
		}
           .....
I've checked in FireBug and the fireEvent is run, but the listener never gets executed.

Any ideas?

Thanks