The following doesn't work and I'm not sure why:
Whereas this does work:
I thought addProperties() returned the defined class with properties added? So why can't I chain statements like this? It's not that big a deal, but it's an aesthetic thing -- I find it cleaner.
Code:
isc.ClassFactory.defineClass("MyTreeGrid","TreeGrid")
.addProperties({
menuID: null
})
.setInstanceProperty("showHeader",false);
Code:
isc.ClassFactory.defineClass("MyTreeGrid","TreeGrid")
.addProperties({
menuID: null
});
isc.MyTreeGrid.setInstanceProperty("showHeader",false);
Comment