src/MoreToolbar/MoreToolbar.js
function () {
		var c$ = this.$.menu.children;
		var c = c$[0];
		if (c) {
			//remove any applied movedClass
			if (this.movedClass && this.movedClass.length > 0 && c.hasClass(this.movedClass)) {
				c.removeClass(this.movedClass);
			}
			this.$.client.addChild(c);
			var p = this.$.client.hasNode();
			if (p && c.hasNode()) {
				var nextChild;
				var currIndex;
				for (var i = 0; i < this.$.client.children.length; i++) {
					var curr = this.$.client.children[i];
					if(curr.toolbarIndex !== undefined && curr.toolbarIndex != i) {
						nextChild = curr;
						currIndex = i;
						break;
					}
				}
				if (nextChild && nextChild.hasNode()) {
					c.insertNodeInParent(p, nextChild.node);
					var newChild = this.$.client.children.pop();
					this.$.client.children.splice(currIndex, 0, newChild);
				} else {
					c.appendNodeToParent(p);
				}
			}
			return true;
		}
	}
function () {
		var c$ = this.$.menu.children;
		var c = c$[0];
		if (c) {
			//remove any applied movedClass
			if (this.movedClass && this.movedClass.length > 0 && c.hasClass(this.movedClass)) {
				c.removeClass(this.movedClass);
			}
			this.$.client.addChild(c);
			var p = this.$.client.hasNode();
			if (p && c.hasNode()) {
				var nextChild;
				var currIndex;
				for (var i = 0; i < this.$.client.children.length; i++) {
					var curr = this.$.client.children[i];
					if(curr.toolbarIndex !== undefined && curr.toolbarIndex != i) {
						nextChild = curr;
						currIndex = i;
						break;
					}
				}
				if (nextChild && nextChild.hasNode()) {
					c.insertNodeInParent(p, nextChild.node);
					var newChild = this.$.client.children.pop();
					this.$.client.children.splice(currIndex, 0, newChild);
				} else {
					c.appendNodeToParent(p);
				}
			}
			return true;
		}
	}
function ( ) { var c$ = this . $ . menu . children ; var c = c$ [ 0 ] ; if ( c ) { //remove any applied movedClass if ( this . movedClass && this . movedClass . length > 0 && c . hasClass ( this . movedClass ) ) { c . removeClass ( this . movedClass ) ; } this . $ . client . addChild ( c ) ; var p = this . $ . client . hasNode ( ) ; if ( p && c . hasNode ( ) ) { var nextChild ; var currIndex ; for ( var i = 0 ; i < this . $ . client . children . length ; i ++ ) { var curr = this . $ . client . children [ i ] ; if ( curr . toolbarIndex !== undefined && curr . toolbarIndex != i ) { nextChild = curr ; currIndex = i ; break ; } } if ( nextChild && nextChild . hasNode ( ) ) { c . insertNodeInParent ( p , nextChild . node ) ; var newChild = this . $ . client . children . pop ( ) ; this . $ . client . children . splice ( currIndex , 0 , newChild ) ; } else { c . appendNodeToParent ( p ) ; } } return true ; } }
Removes the first child of the menu and adds it back to the toolbar.

@private
Removes the first child of the menu and adds it back to the toolbar .