SwVitaliy

Untitled

Dec 15th, 2012
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.74 KB | None | 0 0
  1. if (typeof Res === 'undefined') {
  2. errResponse = {
  3. data: {},
  4. code: function (code) {
  5. this.data.code = code;
  6. return this;
  7. },
  8. description: function (args) {
  9. this.data.descArgs = args;
  10. return this;
  11. },
  12. message: function (message) {
  13. this.data.msg = message;
  14. return this;
  15. },
  16. send: function () {
  17. console.log(this.data);
  18. return this;
  19. }
  20. };
  21. } else {
Advertisement
Add Comment
Please, Sign In to add comment