Use two extensions

Hi,
I want to use two extensions:

  • DrawCommandHandler
  • LocalStorageCommandHandler

I’m using the extension in this way:

window.myDiagram =
$(go.Diagram, “myDiagram”,
{
nodeTemplateMap: templmap,
groupTemplateMap: grouptemplmap,
allowDrop: true, // accept drops from palette
commandHandler: new DrawCommandHandler(), // defined in DrawCommandHandler.js
commandHandler: new LocalStorageCommandHandler(),

But it seems that the second extension override the first one.

Can You help me?
thanks

For now you’ll need to merge the two classes into one.