Skip to content

Commit

Permalink
Extend SchemaInstance by adding a new alias .$response() to `$out…
Browse files Browse the repository at this point in the history
…put()` method.
  • Loading branch information
petersirka committed Jan 17, 2018
1 parent 1936c9b commit d8642a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion builders.js
Original file line number Diff line number Diff line change
Expand Up @@ -2397,7 +2397,7 @@ SchemaInstance.prototype.$callback = function(callback) {
return this;
};

SchemaInstance.prototype.$output = function() {
SchemaInstance.prototype.$response = SchemaInstance.prototype.$output = function() {
this.$$index = this.$$result.length;
return this;
};
Expand Down

0 comments on commit d8642a5

Please sign in to comment.