PDA

View Full Version : [4.2 MVC] refs array, i can't call the getter!



rafaelrp
29 Apr 2013, 6:16 AM
Hello!

i've created a controller and a refs array, in ref i put the alias of my window...


refs: [
{
ref: 'servWindow',
selector: 'servwindow'
}
],


but i can't call the getServWindow() function...


onServLoad: function(){
this.getServWindow().close();
}


Thanks! ~o)

slemmon
1 May 2013, 1:33 PM
If you do:
console.log(this.getServWindow());

what do you get?

rafaelrp
9 May 2013, 6:15 AM
I've solved this problem, the controller references to the view was not correct

Thansk!