When using JS how do we access new property on ActivateTabData, ActivateTabData.new? I tried in this script but I received an error because new is a reserved word.
You can use a Javascript trick to workaround that, by using a string for the method name:
// Called when a tab is activated
function OnActivateTab(activateTabData)
{
DOpus.Output("Old = " + activateTabData.old.path);
DOpus.Output("New = " + activateTabData["new"].path);
}
Ah yep that works. Thanks Mate.
I guess its to late to consider different names like "previous" and "current".
We could add them as synonyms.
Thanks Jon