diff options
Diffstat (limited to 'src/gradient.js')
-rw-r--r-- | src/gradient.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gradient.js b/src/gradient.js index e7b1f72..4c8ed30 100644 --- a/src/gradient.js +++ b/src/gradient.js @@ -1,7 +1,7 @@ SVG.Gradient = SVG.invent({ // Initialize node create: function(type) { - this.constructor.call(this, SVG.create(type + 'Gradient')) + this.constructor.call(this, typeof type == 'object' ? type : SVG.create(type + 'Gradient')) } // Inherit from |