summaryrefslogtreecommitdiffstats
path: root/dist/svg.js
diff options
context:
space:
mode:
authorUlrich-Matthias Schäfer <ulima.ums@googlemail.com>2015-02-23 11:47:09 +0100
committerUlrich-Matthias Schäfer <ulima.ums@googlemail.com>2015-02-23 11:47:09 +0100
commita4ad42e9fb0a9fd63a6e609083729f3060634462 (patch)
tree80bd4eaa4e48004e0bdddad08f231bc60b4e3ee2 /dist/svg.js
parent2ecbacb41660ab7971a444370f3b07464cd1c6e1 (diff)
downloadsvg.js-a4ad42e9fb0a9fd63a6e609083729f3060634462.tar.gz
svg.js-a4ad42e9fb0a9fd63a6e609083729f3060634462.zip
Rework of `drawing.remove()`
Diffstat (limited to 'dist/svg.js')
-rwxr-xr-xdist/svg.js12
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;
}