From a35cd9c556a57cbbf12aba94ed9d7ec1658163ff Mon Sep 17 00:00:00 2001 From: Simon Eisenmann Date: Fri, 29 Aug 2014 11:16:30 +0200 Subject: [PATCH] Fixed event parameters. --- static/js/mediastream/connector.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/static/js/mediastream/connector.js b/static/js/mediastream/connector.js index acb55bd1..9472bbb4 100644 --- a/static/js/mediastream/connector.js +++ b/static/js/mediastream/connector.js @@ -167,7 +167,7 @@ define(['jquery', 'underscore', 'ua-parser'], function($, _, uaparser) { this.room(this.roomid, _.bind(function() { this.connected = true; }, this)); - this.e.triggerHandler("open", [event]); + this.e.triggerHandler("open", [null, event]); // Send out stuff which was previously queued. var data; @@ -187,7 +187,7 @@ define(['jquery', 'underscore', 'ua-parser'], function($, _, uaparser) { console.warn("Connector on connection error."); this.error = true; this.close(); - this.e.triggerHandler("error", [event]); + this.e.triggerHandler("error", [null, event]); }; @@ -200,9 +200,9 @@ define(['jquery', 'underscore', 'ua-parser'], function($, _, uaparser) { console.info("Connector on connection close.", event, this.error); this.close(); if (!this.error) { - this.e.triggerHandler("close", [event]); + this.e.triggerHandler("close", [null, event]); } - this.e.triggerHandler("closed", [event]); + this.e.triggerHandler("closed", [null, event]); };