 ###
 makeTransitionFunc = (func, transitionClass, removeClass, event, test) ->
   (t = 0, cb) ->
-    setTimeout =>
+    nextTick =>
       if @rendered and test.call @
         @prefixedClasses.remove VISIBLE_CLS, HIDDEN_CLS, removeClass
         @prefixedClasses.add TRANS_CLS, transitionClass

        @_transitionTimer = setTimeout =>
          @[func] cb
        , t
        @fire event
    , 10
    @



  # @public
  ###
  hide: (cb) ->
    if @rendered
      @_stopTransition()
      @prefixedClasses.remove VISIBLE_CLS
      @prefixedClasses.add HIDDEN_CLS
      @fire 'hide'
      cb?.call null
    @


