Hello! o)
I have some scripts and users reporting errors when scripts initialize with the recent versions. I guess something changed (unintentionally?!) after the "convenience" functionality was introduced for handling script config items.
I debugged what happens and the problem seems to be at assigning a fresh Vector to the scriptInitData.config collection. The assignment fails for some reason, I think I can show with this demo code:
function OnInit(data){
var scriptInitData = scriptInitData || data;
var myConfigVector = DOpus.Create.Vector();
data.config["myConfigVector"] = myConfigVector;
DOpus.Output("myConfigVector.count = " + myConfigVector.count + " " + " // expected - count == 0");
DOpus.Output("scriptInitData.config['myConfigVector'].count = " + scriptInitData.config["myConfigVector"].count + " // unexpected - count == undefined");
// ..
}
Output:
MyScript.js: myConfigVector.count = 0 // expected - count == 0
MyScript.js: scriptInitData.config['myConfigVector'].count = undefined // unexpected - count == undefined
When I start DO I have 4-5 scripts now, which fail to initialize. They all fail at the same line (basically):
And we also have these users reporting the same issue:
Thank you for any ideas on this! o)
ps: Lot's of new threads these days it seems, don't rush anything. o)
