     Meteor.publish 'teamSearch', (params) ->
       check params,
         name: String
-        text: Match.Optional String
+        text: String
         data: Match.Optional Object
-
-      return @ready() unless params.text?
 
       for name, def of self._definitions when name is params.name
         return self._publishSearch.call self,

  @_getSearchCollectionName: (name) -> "_searchCollection_#{name}"

  @_subscribe: (template, data) ->
    template.subscribe 'teamSearch',
      name: data.name
      text: data.searchValue

      publication: Match.Any

    observeHandles = []
    return params.publication.ready() unless params.text
    params.publication.onStop -> # cleanup
      handle.stop() for handle in observeHandles

