[html] Fix whitespace and few strict JS warnings
authorKalle Vahlman <kalle.vahlman@movial.com>
Thu, 23 Apr 2009 09:03:16 +0000 (12:03 +0300)
committerKalle Vahlman <kalle.vahlman@movial.com>
Thu, 23 Apr 2009 09:13:32 +0000 (12:13 +0300)
html/dbus.js

index 0281b7853ebb7e35999995d9dd0ab6dfef74c608..1a6648d38bd77d307058a8e5e111261897c4a2c6 100644 (file)
@@ -112,7 +112,7 @@ if (!window.DBus)
                                                destination,
                                                object_path,
                                                method_name,
-                                               interface,
+                                               inter,
                                                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),
-            arguments.length);
-
+                                     arguments.length);
         };
 
         // Store the user specified "this" object
@@ -136,7 +135,7 @@ if (!window.DBus)
                                                 destination,
                                                 object_path,
                                                 method_name,
-                                                interface,
+                                                inter,
                                                 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,
-                                        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,
-                                                interface,
+                                                inter,
                                                 signal_name,
                                                 sender,
                                                 object_path);
@@ -266,6 +265,7 @@ DBus.prototype.parseInterface = function(doc, dest, path, inter){
         return ret;
         // break; //interface found
     }
+    return null;
 };
 
 /**