How to store/assing properties to objects in B1
My entire navigation system is build by having buttons and other things hold parameters such as view name it should go to, extra params to pass along etc...
In ST4 I would do this in my view for ex:
I use the view and params array to pass on my nav events. Worked great. Works fine using sencha-touch-debug.js in B1 but not at all in the other sencha builds in B1 - the above assignment on first line gives an error such as
this.down('button[itemId="message"]').params.member_id = 123;
//a button item
text: 'Send Message',
title: 'Send Message'
And this is just one of many cases - it seems I can no longer assin properties - why it works in sencha-touch-debug.js I have no idea.
Uncaught TypeError: Cannot set property 'member_id' of undefined
Can someone explain what I have to do now?