vendor/kinetic-v5.1.0.js
function() {
            if (!this.parent) {
                Kinetic.Util.warn('Node has no parent. moveToTop function is ignored.');
                return;
            }
            var index = this.index;
            this.parent.children.splice(index, 1);
            this.parent.children.push(this);
            this.parent._setChildrenIndices();
            return true;
        }
function() {
            if (!this.parent) {
                Kinetic.Util.warn('Node has no parent. moveToTop function is ignored.');
                return;
            }
            var index = this.index;
            this.parent.children.splice(index, 1);
            this.parent.children.push(this);
            this.parent._setChildrenIndices();
            return true;
        }
function ( ) { if ( ! this . parent ) { Kinetic . Util . warn ( 'Node has no parent. moveToTop function is ignored.' ) ; return ; } var index = this . index ; this . parent . children . splice ( index , 1 ) ; this . parent . children . push ( this ) ; this . parent . _setChildrenIndices ( ) ; return true ; }
move node to the top of its siblings
@method
@memberof Kinetic.Node.prototype
@returns {Boolean}
move node to the top of its siblings