1 /* Copyright (c) 2006 Yahoo! Inc. All rights reserved. */
4 * A menu-specific implementation that differs from TextNode in that only
5 * one sibling can be expanded at a time.
6 * @extends YAHOO.widget.TextNode
9 YAHOO.widget.MenuNode = function(oData, oParent, expanded) {
11 this.init(oData, oParent, expanded);
12 this.setUpLabel(oData);
16 * Menus usually allow only one branch to be open at a time.
19 this.multiExpand = false;
23 YAHOO.widget.MenuNode.prototype = new YAHOO.widget.TextNode();