vendor/kinetic-v5.1.0.js
function() {
            if (!this.parent) {
                Kinetic.Util.warn('Node has no parent. moveUp function is ignored.');
                return;
            }
            var index = this.index,
                len = this.parent.getChildren().length;
            if(index < len - 1) {
                this.parent.children.splice(index, 1);
                this.parent.children.splice(index + 1, 0, this);
                this.parent._setChildrenIndices();
                return true;
            }
            return false;
        }
function() {
            if (!this.parent) {
                Kinetic.Util.warn('Node has no parent. moveUp function is ignored.');
                return;
            }
            var index = this.index,
                len = this.parent.getChildren().length;
            if(index < len - 1) {
                this.parent.children.splice(index, 1);
                this.parent.children.splice(index + 1, 0, this);
                this.parent._setChildrenIndices();
                return true;
            }
            return false;
        }
function ( ) { if ( ! this . parent ) { Kinetic . Util . warn ( 'Node has no parent. moveUp function is ignored.' ) ; return ; } var index = this . index , len = this . parent . getChildren ( ) . length ; if ( index < len - 1 ) { this . parent . children . splice ( index , 1 ) ; this . parent . children . splice ( index + 1 , 0 , this ) ; this . parent . _setChildrenIndices ( ) ; return true ; } return false ; }
move node up
@method
@memberof Kinetic.Node.prototype
@returns {Boolean}
move node up