aboutsummaryrefslogtreecommitdiffstats
path: root/src/svg.js
diff options
context:
space:
mode:
authorwout <wout@impinc.co.uk>2013-02-02 11:14:21 +0100
committerwout <wout@impinc.co.uk>2013-02-02 11:14:21 +0100
commit7323d05f9d09141ec81dcd78d09bdba714c1c5dd (patch)
tree191d1a1e74f8f6b2ab5b7e473897e5daf8759dde /src/svg.js
parent4a7588695a1b385f41acd6cbbfaf76b38b2a1439 (diff)
downloadsvg.js-7323d05f9d09141ec81dcd78d09bdba714c1c5dd.tar.gz
svg.js-7323d05f9d09141ec81dcd78d09bdba714c1c5dd.zip
Reworked SVG.Container inheritance
Diffstat (limited to 'src/svg.js')
-rw-r--r--src/svg.js12
1 files changed, 2 insertions, 10 deletions
diff --git a/src/svg.js b/src/svg.js
index 409aa37..9306232 100644
--- a/src/svg.js
+++ b/src/svg.js
@@ -26,16 +26,8 @@ this.SVG = {
},
// Method for extending objects
extend: function(object, module) {
- /* extend all container modules */
- if (object == SVG.Container)
- ('Clip Defs Doc Gradient Group Mask Nested Pattern').split(' ').forEach(function(m) {
- if (SVG[m])
- SVG.extend(SVG[m], module);
- });
- /* extend given module */
- else
- for (var key in module)
- object.prototype[key] = module[key];
+ for (var key in module)
+ object.prototype[key] = module[key];
}
}; \ No newline at end of file