// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License.txt in the project root for license information. import _Global = require("../../Core/_Global"); import _Constants = require("../CommandingSurface/_Constants"); import _MenuCommandBase = require("../Menu/_Command"); export class _MenuCommand extends _MenuCommandBase.MenuCommand { private _beforeInvoke: Function; constructor(element?: HTMLElement, options?: any) { if (options && options.beforeInvoke) { this._beforeInvoke = options.beforeInvoke; } super(element, options); } _invoke(event: any) { this._beforeInvoke && this._beforeInvoke(event); super._invoke(event); } }