Author: ygrego Date: 2015-03-20 14:53:32 +0000 (Fri, 20 Mar 2015) New Revision: 962 Url: http://forge.nuiton.org/projects/sandbox/repository/revisions/962 Log: Modification in method "verifyASuitableTunerAvailable", use of method "fireEvent" instead of "onChannelChangeError". Modified: oipf/js/utils/ChannelUtils.js Modified: oipf/js/utils/ChannelUtils.js =================================================================== --- oipf/js/utils/ChannelUtils.js 2015-03-20 14:24:13 UTC (rev 961) +++ oipf/js/utils/ChannelUtils.js 2015-03-20 14:53:32 UTC (rev 962) @@ -56,10 +56,12 @@ } if (idType == 40 || idType == 41) { - object.onChannelChangeError && object.onChannelChangeError(null, 8); + timeout(0) + .then(object.fireEvent.bind(object, createCustomEvent("ChannelChangeError", [null, 8]))); } else { //this.onChannelChangeError && this.onChannelChangeError(null, 2); - object.onChannelChangeError && object.onChannelChangeError(null, 0); + timeout(0) + .then(object.fireEvent.bind(object, createCustomEvent("ChannelChangeError", [null, 0]))); } return null; }