I have some problems with sencha touch. I have this simple code :
items: [ { name: "horo", xtype: 'togglefield', label: 'Horodateur ?', labelWidth: '55%', disabled: false, listeners: { beforechange: function (slider, thumb, newValue, oldValue) { if (oldValue == 0 && newValue == 1) { alert("toto"); } }, change: function (slider, thumb, newValue, oldValue) { if (oldValue == 0 && newValue == 1) { alert("titi"); } else if (oldValue == 1 && newValue == 0) alert("tata"); } } },
And I have this error on my console :
Uncaught TypeError: Cannot read property 'apply' of undefined.
What's the problem ? My console say something else, maybe the Controller.js
is the problem.