code: function() {
              var children = Kinetic.Collection.toCollection(this.children);
              var child;
              for (var i = 0; i < children.length; i++) {
                  child = children[i];
                  // reset parent to prevent many _setChildrenIndices calls
                  delete child.parent;
                  child.index = 0;
                  if (child.hasChildren()) {
                      child.removeChildren();
                  }
                  child.remove();
              }
              children = null;
              this.children = new Kinetic.Collection();
              return this;
          }
docs: remove all children
  @method
  @memberof Kinetic.Container.prototype