     if @invalidated
       f()
     else
-      @_onInvalidateCallbacks.push(f)
+      @_onInvalidateCallbacks.push f
 
   invalidate: ->
     if not @invalidated


  _compute: ->
    @invalidated = false
    @._func(@)

  _recompute: ->
    @_recomputing = true

    result

  onInvalidate: (f) ->
    throw new Error "Tracker.onInvalidate requires a currentComputation" unless Tracker.active

    Tracker.currentComputation.onInvalidate(f)

