tests/webkit_inspector.js
authorAlan Knowles <alan@akbkhome.com>
Fri, 11 Jun 2010 02:52:06 +0000 (10:52 +0800)
committerAlan Knowles <alan@akbkhome.com>
Fri, 11 Jun 2010 02:52:06 +0000 (10:52 +0800)
tests/webkit_inspector.js

index 3387020..f38344c 100644 (file)
@@ -20,14 +20,14 @@ w1.signal.show.connect(function() {
     w1.load_uri("http://www.google.com");
     w1.get_settings().enable_developer_extras = true;
 });
-var ins = w1.get_inspector();
+
 w1.signal.load_finished.connect(function(wv) {
     
-    ins.show();
+    w1.get_inspector().show();
     return true;
 });
 w2 = new WebKit.WebView();
-ins .signal.inspect_web_view.connect(function() {
+w1.get_inspector().signal.inspect_web_view.connect(function() {
     return w2;
 })