Author: ygrego Date: 2015-04-01 16:01:22 +0000 (Wed, 01 Apr 2015) New Revision: 1032 Url: http://forge.nuiton.org/projects/sandbox/repository/revisions/1032 Log: Change "object" by "this" in "_channelSwitch". Modified: oipf/js/impl/VideoBroadcastObject.js Modified: oipf/js/impl/VideoBroadcastObject.js =================================================================== --- oipf/js/impl/VideoBroadcastObject.js 2015-04-01 15:47:24 UTC (rev 1031) +++ oipf/js/impl/VideoBroadcastObject.js 2015-04-01 16:01:22 UTC (rev 1032) @@ -886,13 +886,13 @@ this._timeout() .then(this.changeStateToConnectingWhenSwitching.bind(this, channelToChange)); } else if (channelToChange.idType == 40 || channelToChange.idType == 41) { - this._timeout() - .then(object._fireEvent.bind(object, createCustomEvent("ChannelChangeError", [null, 8]))); - } else { - - this._timeout() - .then(object._fireEvent.bind(object, createCustomEvent("ChannelChangeError", [null, 0]))); - } + this._timeout() + .then(this._fireEvent.bind(this, createCustomEvent("ChannelChangeError", [null, 8]))); + } else { + + this._timeout() + .then(this._fireEvent.bind(this, createCustomEvent("ChannelChangeError", [null, 0]))); + } }