Skip to content

Commit a378a75

Browse files
committed
Changed api for listener instance. Transport is now listener property
1 parent 63dc20a commit a378a75

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/core/constructors/listener.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ dop.core.listener = function(args) {
44
dop.util.emitter.call(this); //https://jsperf.com/inheritance-call-vs-object-assign
55
args.unshift(dop, this);
66
this.options = args[2];
7-
this.transport = this.options.transport.apply(this, args);
7+
this.transport = this.options.transport;
8+
this.listener = this.options.transport.apply(this, args);
89
};
910
// Inherit emitter
1011
dop.util.merge(dop.core.listener.prototype, dop.util.emitter.prototype);

0 commit comments

Comments
 (0)