PDA

View Full Version : Sencha Command build stripping custom configs



Halesway
27 Jul 2012, 6:53 AM
Hi,

I'm coming across a strange problem in which when I compile my app with Sencha Command it is stripping my custom parameters



{
xtype: 'button',
text: 'ButtonName',
left: 10,
bottom: 10,
width: 135,
height: 40,
showWarning: true
}

This works perfectly in development, but after building (both testing and production I've tried) showWarning isn't being passed.

Am I missing some obvious setting or just simply not allowed to do it this way?

Thanks.

estesbubba
27 Jul 2012, 7:59 AM
I've ran across this a while ago but can't quite remember what it was. It would work in dev but not prod. Could it be you are accessing it via:

button.showWarning

and it should be:

button.config.showWarning

My problem was something like this.

Halesway
27 Jul 2012, 8:32 AM
Boom!

That was exactly it. Thank you very much!. I'm sure there is a reason why it is set to work differently, but it was annoying!