/**
* Copyright (C) 2005-2016 Alfresco Software Limited.
*
* This file is part of Alfresco
*
* Alfresco is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Alfresco is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
*/
/**
* @module alfresco/header/AlfCascadingMenu
* @extends module:alfresco/menus/AlfCascadingMenu
* @author Dave Draper
*/
define(["dojo/_base/declare",
"alfresco/menus/AlfCascadingMenu",
"dojo/dom-class"],
function(declare, AlfCascadingMenu, domClass) {
return declare([AlfCascadingMenu], {
/**
* An array of the CSS files to use with this widget.
*
* @instance
* @type {string[]}
*/
cssRequirements: [{cssFile:"./css/AlfCascadingMenu.css"}],
/**
* @instance
*/
postCreate: function alfresco_header_AlfMenuBarPopup__postCreate() {
this.inherited(arguments);
if (this.popup && this.popup.domNode)
{
// This ensures that we can differentiate between header menu popups and regular menu popups with our CSS selectors
domClass.add(this.popup.domNode, "alfresco-header-AlfCascadingMenu");
}
}
});
});