src/renderable/container.js
function () {
            // cancel any sort operation
            if (this.pendingSort) {
                clearTimeout(this.pendingSort);
                this.pendingSort = null;
            }

            // delete all children
            for (var i = this.children.length, obj; i >= 0; (obj = this.children[--i])) {
                // don't remove it if a persistent object
                if (obj && !obj.isPersistent) {
                    this.removeChildNow(obj);
                }
            }

            if (typeof this.currentTransform !== "undefined") {
                // just reset some variables
                this.currentTransform.identity();
            }
        }
function () {
            // cancel any sort operation
            if (this.pendingSort) {
                clearTimeout(this.pendingSort);
                this.pendingSort = null;
            }

            // delete all children
            for (var i = this.children.length, obj; i >= 0; (obj = this.children[--i])) {
                // don't remove it if a persistent object
                if (obj && !obj.isPersistent) {
                    this.removeChildNow(obj);
                }
            }

            if (typeof this.currentTransform !== "undefined") {
                // just reset some variables
                this.currentTransform.identity();
            }
        }
function ( ) { // cancel any sort operation if ( this . pendingSort ) { clearTimeout ( this . pendingSort ) ; this . pendingSort = null ; } // delete all children for ( var i = this . children . length , obj ; i >= 0 ; ( obj = this . children [ -- i ] ) ) { // don't remove it if a persistent object if ( obj && ! obj . isPersistent ) { this . removeChildNow ( obj ) ; } } if ( typeof this . currentTransform !== "undefined" ) { // just reset some variables this . currentTransform . identity ( ) ; } }
reset the container, removing all childrens, and reseting transforms.
@name reset
@memberOf me.Container
@function
reset the container removing all childrens and reseting transforms .