[html] Change instanceof operator to typeof test, since instanceof
authorKalle Vahlman <kalle.vahlman@movial.com>
Tue, 19 May 2009 07:31:15 +0000 (10:31 +0300)
committerKalle Vahlman <kalle.vahlman@movial.com>
Tue, 19 May 2009 07:31:15 +0000 (10:31 +0300)
behaves funnily with reloads on WebKit. Not sure why

html/unit.html

index 50ec2284e27380aa1832429b9445497f422d7fd3..f86b2d2fa9fc986cd61386a06e293684ebe773ee 100644 (file)
@@ -72,7 +72,7 @@ Test.prototype =
     var status = document.getElementById('status');
 
     var send_arg;
-    if (this.convert instanceof Function)
+    if (typeof this.convert === "function")
     {
       if (this.convert == dbus.Variant)
       {