on-internet
← Community

Uncaught TypeError: Cannot read property 'apply' of undefined with Sencha

Stack Overflow ·

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 ? M

Comments

Sign in or sign up to comment and upvote.

No comments yet.