         clearTimeout @_transitionTimer
 
         if @_transitionPromise
-          Promise.reject @_transitionPromise, new TransitionCanceled "Transition
-          canceled by another transition event."
+          Promise.reject @_transitionPromise, new TransitionCanceledExc "
+          Transition canceled by another transition event."
 
         @_transitionPromise = promise
 

      else
        msg = "Transition canceled because test function returned false or the
        view is not yet rendered."
        reason = new TransitionCanceled(msg)
        Promise.reject promise, reason
    promise



      Promise.resolve promise, {width, height}

    # Get the current bounding rect.
    r = @root.getBoundingClientRect()

    if r.width > 0 and r.height > 0
      Promise.resolve promise, {width: r.width, height: r.height}
    else if @rendered
      calcPositionOffScreen()
    else
