syntax check
authorLuc Yriarte <luc.yriarte@intel.com>
Mon, 15 Apr 2013 16:00:49 +0000 (18:00 +0200)
committerFrederic PAUT <frederic.paut@linux.intel.com>
Fri, 24 May 2013 08:02:06 +0000 (10:02 +0200)
cloudeebus/cloudeebus.js

index bd571ac..18e7317 100644 (file)
@@ -535,7 +535,7 @@ cloudeebus.ProxyObject.prototype._addMethod = function(ifName, method, nArgs) {
        
 };
 
-cloudeebus.ProxyObject.prototype.callMethod = function(ifName, method, args, successCB = null, errorCB = null) {
+cloudeebus.ProxyObject.prototype.callMethod = function(ifName, method, args, successCB, errorCB) {
        
        var self = this;
        var request = new cloudeebus.Request(this, successCB, errorCB);
@@ -556,7 +556,7 @@ cloudeebus.ProxyObject.prototype.callMethod = function(ifName, method, args, suc
 
        function callMethodErrorCB(error) {
                cloudeebus.log("Error calling method: " + method + " on object: " + self.objectPath + " : " + error.desc);
-               request.error = error.desc
+               request.error = error.desc;
                if (request.onerror)
                        request.onerror(request.error);
        }