 			if shape.dashStyle
 				@context.beginPath() # clear prev lineTo
 				pts = shape.points
-				@context.dashedLine pts[0].x, pts[0].y, pts[1].x, pts[1].y, shape.dashStyle, shape.dashDelta
-				@context.dashedLine pts[1].x, pts[1].y, pts[2].x, pts[2].y, shape.dashStyle, shape.dashDelta
-				@context.dashedLine pts[2].x, pts[2].y, pts[0].x, pts[0].y, shape.dashStyle, shape.dashDelta
+				@context.dashedLine pts[0].x, pts[0].y, pts[1].x, pts[1].y, shape.dashStyle, shape.dashOffset
+				@context.dashedLine pts[1].x, pts[1].y, pts[2].x, pts[2].y, shape.dashStyle, shape.dashOffset
+				@context.dashedLine pts[2].x, pts[2].y, pts[0].x, pts[0].y, shape.dashStyle, shape.dashOffset
 			@context.stroke()
 		@
 

# See: http://stackoverflow.com/questions/4576724/dotted-stroke-in-canvas
(=>
	CP = window.CanvasRenderingContext2D and CanvasRenderingContext2D.prototype
	CP.dashedLine = (x, y, x2, y2, da, delta) ->
		da = Bu.DEFAULT_DASH_STYLE if not da?
		delta = 0 if not delta?
		@save()
		dx = x2 - x
		dy = y2 - y

		@shapes = []

		if not @fillParent
			@dom.style.width = Math.floor(@width / @pixelRatio) + 'px'
			@dom.style.height = Math.floor(@height / @pixelRatio) + 'px'
			@dom.width = @width
			@dom.height = @height
		@dom.style.border = 'solid 1px gray' if options.border? and options.border
		@dom.style.cursor = 'crosshair'
		@dom.style.boxSizing = 'content-box'
		@dom.style.background = '#eee'
		@dom.oncontextmenu = -> false

