Created
August 6, 2010 12:28
-
-
Save opichals/511242 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From a1a4f31f23c7c777c160a4631e4df777eaef2f79 Mon Sep 17 00:00:00 2001 | |
From: Standa Opichal <[email protected]> | |
Date: Fri, 6 Aug 2010 14:22:39 +0200 | |
Subject: [PATCH 2/2] Removing the 'cannot parse d=""' errors reported by browsers. | |
--- | |
gfx/svg.js | 2 +- | |
1 files changed, 1 insertions(+), 1 deletions(-) | |
diff --git a/gfx/svg.js b/gfx/svg.js | |
index dc2fe89..0063a3f 100644 | |
--- a/gfx/svg.js | |
+++ b/gfx/svg.js | |
@@ -457,7 +457,7 @@ else | |
// summary: forms a path using a shape (SVG) | |
// newShape: Object: an SVG path string or a path object (see dojox.gfx.defaultPath) | |
g.Path.superclass.setShape.apply(this, arguments); | |
- this.rawNode.setAttribute("d", this.shape.path); | |
+ this.shape.path && this.rawNode.setAttribute("d", this.shape.path); | |
return this; // self | |
} | |
}); | |
-- | |
1.7.2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment