 			#{@keyFrameAnimationCSS}
 		
 			.#{@animationName} {
-				-webkit-animation-duration: #{totalTime}s;
+				-webkit-animation-duration: #{@totalTime}s;
 				-webkit-animation-name: #{@animationName};
 				-webkit-animation-timing-function: linear;
 				-webkit-animation-fill-mode: both;
 			}"
 		
 		@view.addClass @animationName
-
-		# if @graph
-		# 	@_graphView = @graphView @, 10, 20, 20, @time
 			
 		finalize = =>
+			
+			if @_canceled is true
+				return
 			
 			# Copy over the end state properties for this animation so we can safely
 			# remove the animation.

			callback?()
			@_cleanup()
			
			# console.profileEnd "Animation.start"
		
		@view.once "webkitAnimationEnd", finalize

		# Set all the defaults
		@time ?= 1000
		@curve ?= "linear"
		@precision ?= 30
		
		@curveValues = @_parseCurve @curve
		@totalTime = @curveValues.length / @precision
		@count = 0
		# @animationId = utils.uuid()[..8]
		
