Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save opichals/511242 to your computer and use it in GitHub Desktop.
Save opichals/511242 to your computer and use it in GitHub Desktop.
From a1a4f31f23c7c777c160a4631e4df777eaef2f79 Mon Sep 17 00:00:00 2001
From: Standa Opichal <opichals@gmail.com>
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