Skip to content
This repository has been archived by the owner on Jun 15, 2018. It is now read-only.

Commit

Permalink
Make it so that the lines for the shape are drawn, not the fill.
Browse files Browse the repository at this point in the history
  • Loading branch information
bemjb committed Aug 23, 2012
1 parent 6c58a4d commit 847b6e0
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions main.js
Expand Up @@ -211,7 +211,8 @@ define(function (require, exports, module) {
function _extractShape(tokens) {
var i,
state = 0,
parser;
parser,
shape;
for (i = 0; !parser && i < tokens.length; i++) {
switch (state) {
case 0: // eat up initial whitespace
Expand Down Expand Up @@ -240,7 +241,10 @@ define(function (require, exports, module) {
}
}

return parser.call(null, _normalizeParameterList(tokens.slice(i)));
shape = parser.call(null, _normalizeParameterList(tokens.slice(i)));
shape.setAttribute("stroke", "red");
shape.setAttribute("fill", "none");
return shape;
}

/**
Expand Down

0 comments on commit 847b6e0

Please sign in to comment.