         # Set the new transition timer.
         @_transitionTimer = setTimeout =>
           @[func] promise
-        , (e.data.time or 0)
+        , (time or 0)
 
         if func is 'hide' then @repaint()
 


    for event, handler of contextEvents
      @context.on event, (e) =>
        handler.call @, e.data.promise
      , @

    @_transitionTimer = null

# @inner
###
makeTransitionFunc = (func, transitionClass, removeClass, state, test) ->
  (promise, time) ->
    nextTick =>
      promise = promise or new Promise()

