Skip to content

Commit

Permalink
0.11.0
Browse files Browse the repository at this point in the history
  • Loading branch information
darlanalves committed Oct 18, 2015
1 parent f9cd9f8 commit 14b0392
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ngrepository",
"version": "0.9.3",
"version": "0.11.0",
"homepage": "https://github.com/darlanalves/angular-repository",
"authors": [
"Darlan Alves <me@darlanalv.es>"
Expand Down
4 changes: 3 additions & 1 deletion dist/repository.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ function QueryBuilderFactory(RepositoryFilter, RepositorySorting, RepositoryPagi
this.$$fields.push(field);
}
}, this);
return this;
}
function skip(skipValue) {
this.$$pagination.goToPage(~~(skipValue / this.$$pagination.itemsPerPage) + 1);
Expand All @@ -138,7 +139,8 @@ function QueryBuilderFactory(RepositoryFilter, RepositorySorting, RepositoryPagi
return {
filters: this.$$filters.toJSON(),
pagination: this.$$pagination.toJSON(),
sorting: this.$$sorting.toJSON()
sorting: this.$$sorting.toJSON(),
fields: this.$$fields.slice()
};
}
function getRepository() {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "ngrepository",
"description": "",
"version": "0.10.0",
"version": "0.11.0",
"devDependencies": {
"angular-di-annotations": "^0.2.0",
"gulp": "~3.8.0",
Expand Down
3 changes: 1 addition & 2 deletions test/unit/QueryBuilder.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ describe('QueryBuilder', function() {
}));
});

ddescribe('#toJSON()', function() {
describe('#toJSON()', function() {
it('should return the state in the query builder', inject(function(QueryBuilder) {
var query = new QueryBuilder();

Expand Down Expand Up @@ -173,7 +173,6 @@ describe('QueryBuilder', function() {
// count was not set on query construction
}
});

}));
});

Expand Down

0 comments on commit 14b0392

Please sign in to comment.