###*
   * Disable a function for a while
   * @name apeman.disableWhile
  ###
ap.disableWhile = (namespace, key, interval) ->
  _fn = namespace[key]
  namespace[key] = ap.doNothing.bind(ap)
  setTimeout( () ->
    namespace[key] = _fn
  , interval || 1000)