[html] Fix whitespace and few strict JS warnings
[browser-dbus-bridge.git] / html / dbus.js
index 0281b7853ebb7e35999995d9dd0ab6dfef74c608..1a6648d38bd77d307058a8e5e111261897c4a2c6 100644 (file)
@@ -112,7 +112,7 @@ if (!window.DBus)
                                                destination,
                                                object_path,
                                                method_name,
                                                destination,
                                                object_path,
                                                method_name,
-                                               interface,
+                                               inter,
                                                signature,
                                                user_data) {
 
                                                signature,
                                                user_data) {
 
@@ -123,8 +123,7 @@ if (!window.DBus)
             ep("UniversalXPConnect");
             // FIXME: Is the copy really necessary? Why?
             method.dbusmethod.doCall(Array.prototype.slice.call(arguments),
             ep("UniversalXPConnect");
             // FIXME: Is the copy really necessary? Why?
             method.dbusmethod.doCall(Array.prototype.slice.call(arguments),
-            arguments.length);
-
+                                     arguments.length);
         };
 
         // Store the user specified "this" object
         };
 
         // Store the user specified "this" object
@@ -136,7 +135,7 @@ if (!window.DBus)
                                                 destination,
                                                 object_path,
                                                 method_name,
                                                 destination,
                                                 object_path,
                                                 method_name,
-                                                interface,
+                                                inter,
                                                 signature);
 
         /* XXX: Hmm? onreply and onerror are undefined here, no? */
                                                 signature);
 
         /* XXX: Hmm? onreply and onerror are undefined here, no? */
@@ -168,17 +167,17 @@ if (!window.DBus)
 
     // Bridge API: dbus.getSignal()
     window.DBus.prototype.getSignal = function(bustype,
 
     // Bridge API: dbus.getSignal()
     window.DBus.prototype.getSignal = function(bustype,
-                                        interface,
-                                        signal_name,
-                                        sender,
-                                        object_path,
-                                        user_data) {
+                                               inter,
+                                               signal_name,
+                                               sender,
+                                               object_path,
+                                               user_data) {
         var signal = {};
 
         // Create the XPCOM signal object
         ep("UniversalXPConnect");
         signal.dbussignal = this.dbus.getSignal(bustype,
         var signal = {};
 
         // Create the XPCOM signal object
         ep("UniversalXPConnect");
         signal.dbussignal = this.dbus.getSignal(bustype,
-                                                interface,
+                                                inter,
                                                 signal_name,
                                                 sender,
                                                 object_path);
                                                 signal_name,
                                                 sender,
                                                 object_path);
@@ -266,6 +265,7 @@ DBus.prototype.parseInterface = function(doc, dest, path, inter){
         return ret;
         // break; //interface found
     }
         return ret;
         // break; //interface found
     }
+    return null;
 };
 
 /**
 };
 
 /**