[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 50ec228..f86b2d2 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)
       {