Sencha touch getView() in controller is undefined -


i follow this tutorial learn sencha touch 2. in chapter 3 when want active second view, it's undefined:

var newpage = this.getnewpagecontainer(); ext.viewport.animateactiveitem(newpage, this.sliderighttransition); // noting happend.  console.log(this.getnewchallangecontainer()); // print "undefined" 

i set on config, refs:

refs: {    // we're going lookup our views xtype.    pagecontainer: "pagecontainer",    newpagecontainer: "newpagecontainer" } 

thanks :)


Comments

Popular posts from this blog

apache - Remove .php and add trailing slash in url using htaccess not loading css -

javascript - jQuery show full size image on click -