UNPKG

1.02 kBJavaScriptView Raw
1(function() {
2 var Messenger,
3 __hasProp = Object.prototype.hasOwnProperty,
4 __extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor; child.__super__ = parent.prototype; return child; };
5
6 Messenger = require("../concrete/messenger");
7
8 module.exports = (function(_super) {
9
10 __extends(_Class, _super);
11
12 function _Class() {
13 _Class.__super__.constructor.apply(this, arguments);
14 }
15
16 /*
17 */
18
19 _Class.prototype.start = function() {
20 return _Class.__super__.start.call(this);
21 };
22
23 /*
24 */
25
26 _Class.prototype._next = function(middleware) {
27 return middleware.listener.call(this, this.message, this.response, this);
28 };
29
30 /*
31 */
32
33 _Class.prototype._onError = function(error) {
34 return this.response.error(error);
35 };
36
37 return _Class;
38
39 })(Messenger);
40
41}).call(this);