           delete @subscriptions[k]
       @subscriptions.length = 0
       true
-  
+
   constructor: (collection, settings = {}) ->
     unless @ instanceof Meteor.Pagination
       throw new Meteor.Error "missing-new", "The Meteor.Pagination instance has to be initiated with `new`"
-    
+
     # Instance variables
-    
+
     @init = @beforeFirstReady = true
     @debug ?= (PAGES_DEBUG? and PAGES_DEBUG) or process?.env.PAGES_DEBUG
     @subscriptions = length: 0, order: []

        name = name + "2"
    @id = "pages_" + name
    @name = name
  
  #
  
  registerInstance: ->
    Pages::_nInstances++
    Pages::instances[@name] = @
  
  # Set the collection on which this instance operates. Creates a new one if a name is passed in.
  
  setCollection: (collection) ->
    if typeof collection is "object"
      Pages::collections[collection._name] = collection

        doc["_#{@id}_p"] = page
        doc["_#{@id}_i"] = at
        id = doc._id
        delete doc._id
        # Add to @Collection
        query().forEach (o, i) =>
          if i is at
