Skip to content

Commit 56c3eea

Browse files
committed
Made it work on Safari
1 parent b12fbee commit 56c3eea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

demos/draw_world.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ function drawShape(shape, context, parentBody, currBuffer, buffers) {
141141
}
142142
pathStr += 'L'+xy[0]+' '+xy[1]+' ';
143143
shape.sprite = context.group();
144-
var pathObj = context.path(shape.sprite, pathStr, {stroke:'#696', class:'poly'});
144+
var pathObj = context.path(shape.sprite, pathStr, {stroke:'#696', 'class':'poly'});
145145
angle *= 180/Math.PI; // convert to degrees from radians
146146
context.change(shape.sprite, {'transform':'rotate('+angle+'),translate('+pos.x+','+pos.y+')'});
147147
jQuery(pathObj).hover(setPolyHoverIn, setPolyHoverOut);

0 commit comments

Comments
 (0)