Skip to content
This repository has been archived by the owner on Dec 23, 2018. It is now read-only.

Commit

Permalink
typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Craig Condon committed Apr 12, 2012
1 parent d69f1fd commit 14cbb54
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/common/drivers/memory/cursor.js
Expand Up @@ -24,13 +24,13 @@ var Cursor = require("../../abstract/cursor").extend({

//TODO - async chunk
if(this._sifted) return fn(null, this._sifted);
sifted = this._sifted = this._sort(this._sift(this.collection.target));
sifted = this._sort(this._sift(this.collection.target));

if(this.options.limit && sifted.length > this._options.limit) {
sifted = sifted.splice(0, this.options.limit);
}

fn(null, sifted);
fn(null, this._sifted = sifted);
},


Expand Down

0 comments on commit 14cbb54

Please sign in to comment.