function _addMenu( dom, parentNode ) {
    var newParentNode = parentNode;
    var transition;
    if ( dataHook.contains( dom, FlyoutMenu.BASE_CLASS ) ) {
      var menu = new FlyoutMenu( dom ).init();
      transition = new MoveTransition( menu.getDom().content ).init();
      menu.setExpandTransition( transition, transition.moveToOrigin );
      menu.setCollapseTransition( transition, transition.moveLeft );
      _addEvents( menu );
      newParentNode = newParentNode.tree.add( menu, newParentNode );
      menu.setData( newParentNode );
    }

    return newParentNode;
  }
/**
   * Create a new FlyoutMenu and attach it to a new tree node.
   * @param {HTMLNode} dom
   *   A DOM element to check for a js data-* attribute hook.
   * @param {TreeNode} parentNode
   *   The parent node in a tree on which to attach a new menu.
   * @returns {TreeNode} Return the processed tree node.
   */
Create a new FlyoutMenu and attach it to a new tree node.
@param {HTMLNode} dom
A DOM element to check for a js data-* attribute hook.
@param {TreeNode} parentNode
The parent node in a tree on which to attach a new menu.
@returns {TreeNode} Return the processed tree node.
Create a new FlyoutMenu and attach it to a new tree node . @param { HTMLNode } dom A DOM element to check for a js data - * attribute hook . @param { TreeNode } parentNode The parent node in a tree on which to attach a new menu . @returns { TreeNode } Return the processed tree node .
function _addMenu( dom, parentNode ) {
    var newParentNode = parentNode;
    var transition;
    if ( dataHook.contains( dom, FlyoutMenu.BASE_CLASS ) ) {
      var menu = new FlyoutMenu( dom ).init();
      transition = new MoveTransition( menu.getDom().content ).init();
      menu.setExpandTransition( transition, transition.moveToOrigin );
      menu.setCollapseTransition( transition, transition.moveLeft );
      _addEvents( menu );
      newParentNode = newParentNode.tree.add( menu, newParentNode );
      menu.setData( newParentNode );
    }
    return newParentNode;
  }
function _addMenu ( dom , parentNode ) { var newParentNode = parentNode ; var transition ; if ( dataHook . contains ( dom , FlyoutMenu . BASE_CLASS ) ) { var menu = new FlyoutMenu ( dom ) . init ( ) ; transition = new MoveTransition ( menu . getDom ( ) . content ) . init ( ) ; menu . setExpandTransition ( transition , transition . moveToOrigin ) ; menu . setCollapseTransition ( transition , transition . moveLeft ) ; _addEvents ( menu ) ; newParentNode = newParentNode . tree . add ( menu , newParentNode ) ; menu . setData ( newParentNode ) ; } return newParentNode ; }
Create a new FlyoutMenu and attach it to a new tree node.
Create a new FlyoutMenu and attach it to a new tree node .