Editor commands serialization

Hi all,

I’m upgrading my application which used an earlier version of three.js that leverages the Editor command mechanism to apply changes to the scene. Methods like MultiCmdsCommand.fromJSON( json ) fail now because calls to
"new window cmd " fail if cmd is not in the global namespace as is the case now. Is this workflow not supported anymore, or am I doing something wrong? I’d prefer not to brute force create commands based on the cmd type/string as it would be hard to maintain but don’t know what better mechanisms are available. Thank you