 
     timeoutID = window.setInterval animator
 
-    styles[styleName] = initial
+    styles[styleName] = initialValue
     element.setStyle styles
 
   # Generic view of an DOM event that is passed to a handler function.

    throw new Error "Provided value <#{content}> is not valid as DOM element content."

  # _internal_: Currently don't want to rely on Scriptaculous, since our needs are pretty minor.
  animate = (element, styleName, initial, final, duration, callbacks) ->
    styles = {}
    range = final - initial
    initialTime = Date.now()
    first = true
    animator = ->
      elapsed = Date.now() - initialTime
      if elapsed >= duration
        styles[styleName] = final
        element.setStyle styles
        window.clearInterval timeoutID
        callbacks.oncomplete and callbacks.oncomplete()


    constructor: (event) ->
      @nativeEvent = event

      # This is to satisfy YUICompressor which doesn't seem to like 'char', even
      # though it doesn't appear to be a reserved word.
      this[name] = event[name] for name in ["memo", "type", "char", "key"]

    # Stops the event which prevents further propagation of the DOM event,
    # as well as DOM event bubbling.
