diff options
Diffstat (limited to 'src/svg.js')
-rw-r--r-- | src/svg.js | 12 |
1 files changed, 2 insertions, 10 deletions
@@ -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 |