 TRANS_OUT_CLS = vars.read 'common/transitioning-out'
 
 
-makeTransitionFunc = (func, transitionClass, removeClass, test) ->
+makeTransitionFunc = (func, transitionClass, removeClass, event, test) ->
   (t = 0, cb) ->
     setTimeout =>
       if @rendered and test.call @

        @_stopTransition()
        @prefixedClasses.remove HIDDEN_CLS
        @prefixedClasses.add VISIBLE_CLS
        cb?.call null
    , 0
    @

        @_stopTransition()
        @prefixedClasses.remove VISIBLE_CLS
        @prefixedClasses.add HIDDEN_CLS
        @fire 'hide'
        cb?.call null
    , 0
    @
