If I want to know if an object has a particular property I can code this:
if (SomeObject.hasOwnProperty('xyz')) {
// some code
}
But some styles masquerade as properties at design time such as Button.color... How can I know what style properties are valid at runtime? ie: What is the equivalent of hasOwnProperty for getStyle/setStyle?
In other words how can I know if an object HAS A particular style variable... When I write:
MyButton.setStyle('qsfgaeWT','-33');
It won't accomplish anything, but it also doesn't error. How can I know programmatically that 'qsfgaeWT' is NOT a valid style of 'Button'??