 
 # Todo: this would normally be BaseClass but the properties keyword
 # is not compatible and causes problems.
-class exports.Animation extends EventEmitter
+class exports.Animation extends BaseClass
 
 	constructor: (options={}) ->
 


{Config} = require "./Config"
{Defaults} = require "./Defaults"
{EventEmitter} = require "./EventEmitter"

{LinearAnimator} = require "./Animators/LinearAnimator"
{BezierCurveAnimator} = require "./Animators/BezierCurveAnimator"

		@_originalState = @_currentState()
		@_repeatCounter = @options.repeat

	@define "isAnimating",
		get: -> @ in @options.layer.context.animations

	start: =>

		if @options.layer is null
