Skip to content
This repository has been archived by the owner on Dec 21, 2019. It is now read-only.

Commit

Permalink
Children are no longer necessary in SVG since we don't need measure.
Browse files Browse the repository at this point in the history
ART is not a DOM. If you want a DOM, use the DOM.
  • Loading branch information
sebmarkbage committed Dec 30, 2010
1 parent d3e5ddf commit 016dbfc
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions Source/ART.SVG.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,6 @@ ART.SVG.Group = new Class({
this.height = height;
this.defs = createElement('defs');
this.element.appendChild(this.defs);
this.children = [];
}

});
Expand All @@ -118,7 +117,6 @@ ART.SVG.Base = new Class({

inject: function(container){
this.eject();
if (container instanceof ART.SVG.Group) container.children.push(this);
this.container = container;
this._injectBrush('fill');
this._injectBrush('stroke');
Expand All @@ -128,7 +126,6 @@ ART.SVG.Base = new Class({

eject: function(){
if (this.container){
if (this.container instanceof ART.SVG.Group) this.container.children.erase(this);
this.parent();
this._ejectBrush('fill');
this._ejectBrush('stroke');
Expand Down

0 comments on commit 016dbfc

Please sign in to comment.