Skip to content

Commit

Permalink
Fixed count() method returns string
Browse files Browse the repository at this point in the history
  • Loading branch information
t0ster committed Jan 16, 2011
1 parent 2f1384e commit 03aecd3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions joli.js
Expand Up @@ -218,7 +218,7 @@ joli.model.prototype = {
});
}

return q.execute();
return parseInt(q.execute(), 10);
},

// no callbacks, more efficient
Expand Down Expand Up @@ -638,4 +638,4 @@ joli.record.prototype = {

return true;
}
};
};

0 comments on commit 03aecd3

Please sign in to comment.