If I override the init function of FormItem then the javascript global identifier is not allocated.
The following demonstrates the problem;
If the init override is removed then window["test1"] is allocated as expected.
Am I doing something wrong or is there an alternative method when dealing with FormItem's ?
Tested using IE9, Firefox 5.0.1, Chrome 12.0.742.122.
SmartClient Version: SC_SNAPSHOT-2011-07-18/LGPL Development Only
The following demonstrates the problem;
Code:
isc.FormItem.addProperties({ init: function () { this.Super("init", arguments); } }); isc.DynamicForm.create({ fields: [{ ID: "test1", name: "test1"}] }); if (window["test1"]) isc.say("test1 does exist"); else isc.say("test1 does not exist");
Am I doing something wrong or is there an alternative method when dealing with FormItem's ?
Tested using IE9, Firefox 5.0.1, Chrome 12.0.742.122.
SmartClient Version: SC_SNAPSHOT-2011-07-18/LGPL Development Only
Comment