This question is about creating plugin.
In expression.js:
expvalueProto.set_any = function (val)
{
if (typeof val === "number")
{
?this.type = cr.exptype.Float;
?this.data = val;
}
else if (typeof val === "string")
{
?this.type = cr.exptype.String;
?this.data = val.toString();
}
// null/undefined/an object for some reason
else
{
?this.type = cr.exptype.Integer;
?this.data = 0;
}
};
It seems an object will be ignored by
this.type = cr.exptype.Integer;
this.data = 0;
Can "set_any" pass an object type? Maybe it can carry an object like an array to another plugin object.