ProxyObject connectToSignal successCB renamed handlerCB, as it is a signal handler
authorLuc Yriarte <luc.yriarte@intel.com>
Mon, 3 Jun 2013 09:49:32 +0000 (11:49 +0200)
committerLuc Yriarte <luc.yriarte@intel.com>
Mon, 3 Jun 2013 09:49:32 +0000 (11:49 +0200)
cloudeebus/cloudeebus.js

index e492dcf..70615d0 100644 (file)
@@ -561,14 +561,14 @@ cloudeebus.ProxyObject.prototype.callMethod = function(ifName, method, args, sig
 };
 
 
-cloudeebus.ProxyObject.prototype.connectToSignal = function(ifName, signal, successCB, errorCB) {
+cloudeebus.ProxyObject.prototype.connectToSignal = function(ifName, signal, handlerCB, errorCB) {
        
        var self = this; 
 
        function signalHandler(id, data) {
-               if (successCB) {
+               if (handlerCB) {
                        try { // calling dbus hook object function for un-translated types
-                               successCB.apply(self, eval(data));
+                               handlerCB.apply(self, eval(data));
                        }
                        catch (e) {
                                cloudeebus.log("Signal handler exception: " + e);