From 0ed59d7b92de2bf1018ad8d0198a356fc626f94d Mon Sep 17 00:00:00 2001 From: Thomas Shinnick Date: Sun, 16 Mar 2014 21:10:39 -0500 Subject: [PATCH] cleanup duplicate code on group Element creation --- src/svg.js | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/svg.js b/src/svg.js index d347a7b..fafacb8 100644 --- a/src/svg.js +++ b/src/svg.js @@ -2507,7 +2507,6 @@ function make(name, parent) { var res = $(name); parent.appendChild(res); var el = wrap(res); - el.type = name; return el; } function Paper(w, h) { @@ -2909,10 +2908,6 @@ function gradientRadial(defs, cx, cy, r, fx, fy) { \*/ proto.group = proto.g = function (first) { var el = make("g", this.node); - el.add = add2group; - for (var method in proto) if (proto[has](method)) { - el[method] = proto[method]; - } if (arguments.length == 1 && first && !first.type) { el.attr(first); } else if (arguments.length) { @@ -3711,4 +3706,4 @@ Snap.plugin = function (f) { }; glob.win.Snap = Snap; return Snap; -}()); \ No newline at end of file +}());