aboutsummaryrefslogtreecommitdiffstats
path: root/dist/svg.js
diff options
context:
space:
mode:
authorwout <wout@impinc.co.uk>2013-06-23 15:20:16 +0100
committerwout <wout@impinc.co.uk>2013-06-23 15:20:16 +0100
commit9841728efbe16219a1c412951841a06ee98ff6ec (patch)
treea5375c909e053893921d19fa43289d405bd459ab /dist/svg.js
parenta72b8a7afb609b9a76c494d9123d78e5c40962bf (diff)
downloadsvg.js-9841728efbe16219a1c412951841a06ee98ff6ec.tar.gz
svg.js-9841728efbe16219a1c412951841a06ee98ff6ec.zip
Fix in fill() method
Diffstat (limited to 'dist/svg.js')
-rw-r--r--dist/svg.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/dist/svg.js b/dist/svg.js
index a046985..0cec3a4 100644
--- a/dist/svg.js
+++ b/dist/svg.js
@@ -1,4 +1,4 @@
-/* svg.js v0.20 - svg regex default color number viewbox bbox rbox element container fx event group arrange defs mask clip pattern gradient doc shape rect ellipse line poly path plotable image text nested sugar - svgjs.com/license */
+/* svg.js v0.20-1-ga72b8a7 - svg regex default color number viewbox bbox rbox element container fx event group arrange defs mask clip pattern gradient doc shape rect ellipse line poly path plotable image text nested sugar - svgjs.com/license */
;(function() {
this.SVG = function(element) {
@@ -2267,9 +2267,9 @@
extension[method] = function(o) {
var indexOf
- if (typeof o == 'string' || SVG.Color.isRgb(o))
+ if (typeof o == 'string' || SVG.Color.isRgb(o) || (o && typeof o.fill === 'function'))
this.attr(method, o)
-
+
else
/* set all attributes from _fillAttr and _strokeAttr list */
for (index = SVG['_' + method].length - 1; index >= 0; index--)