diff options
Diffstat (limited to 'dist/svg.js')
-rwxr-xr-x | dist/svg.js | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/dist/svg.js b/dist/svg.js index 12ffe73..0c02421 100755 --- a/dist/svg.js +++ b/dist/svg.js @@ -1,4 +1,4 @@ -/* svg.js 1.0.1-23-g095b474 - svg selector inventor polyfill regex default color array pointarray patharray number viewbox bbox rbox element parent container fx relative event defs group arrange mask clip gradient pattern doc shape symbol use rect ellipse line poly path image text textpath nested hyperlink marker sugar set data memory helpers - svgjs.com/license */ +/* svg.js 1.0.1-26-g2ecbacb - svg selector inventor polyfill regex default color array pointarray patharray number viewbox bbox rbox element parent container fx relative event defs group arrange mask clip gradient pattern doc shape symbol use rect ellipse line poly path image text textpath nested hyperlink marker sugar set data memory helpers - svgjs.com/license */ ;(function(root, factory) { if (typeof define === 'function' && define.amd) { define(factory); @@ -1114,7 +1114,7 @@ // Remove element , remove: function() { if (this.parent) - this.doc() === this ? this.destroy() : this.parent.removeElement(this) + this.parent.removeElement(this) return this } @@ -2604,9 +2604,11 @@ } // Removes the doc from the DOM - , destroy: function() { - this.parent.removeChild(this.node); - this.parent = null; + , remove: function() { + if(this.parent) { + this.parent.removeChild(this.node); + this.parent = null; + } return this; } |