Answered: Having issue with calling a function from a buttonhandler inside a tabPanel
Answered: Having issue with calling a function from a buttonhandler inside a tabPanel
Back Ground : I am working on an MVC application using sencha touch 2. I am working on a page which has two tabs. Inside the first tab, I have a button inside a title bar. Issue : I am not able to call anyother function from the button handler. I think, there is an issue with the scope of the calling function.
onNewButtonTap: function ()
{
console.log('newNoteCommand');
},
}); I am getting the error as below.
Uncaught TypeError: Object function (selector)
{
var result = this.parent;
if (selector)
{
for (; result; result = result.parent)
{ if (Ext.ComponentQuery.is(result, selector))
{ return result;
} } }
return result; } has no method 'onNewButtonTap'
I think there is an issue with setting the scope of a button. Kindly help. Thank you
Last edited by gendaful; 13 Dec 2012 at 2:01 PM.
Reason: Reformatted the code for better understanding