From 9931279ccc601ed4f1d9a899ce76e97fe9b745e7 Mon Sep 17 00:00:00 2001 From: Ariya Hidayat Date: Sun, 19 Jun 2011 15:28:58 -0700 Subject: [PATCH] Remove unnecessary console redirection. --- examples/pizza.coffee | 3 --- examples/pizza.js | 4 ---- examples/waitfor.coffee | 4 ---- examples/waitfor.js | 5 ----- 4 files changed, 16 deletions(-) diff --git a/examples/pizza.coffee b/examples/pizza.coffee index 5fc4d08f..df49f2f6 100644 --- a/examples/pizza.coffee +++ b/examples/pizza.coffee @@ -2,9 +2,6 @@ page = new WebPage() -page.onConsoleMessage = (msg) -> - console.log(msg); - page.open 'http://www.google.com/m/local?site=local&q=pizza+in+new+york', (status) -> if status isnt 'success' diff --git a/examples/pizza.js b/examples/pizza.js index 3a8a5b01..6e6c2c65 100644 --- a/examples/pizza.js +++ b/examples/pizza.js @@ -2,10 +2,6 @@ var page = new WebPage(); -page.onConsoleMessage = function (msg) { - console.log(msg); -}; - page.open('http://www.google.com/m/local?site=local&q=pizza+in+new+york', function (status) { if (status !== 'success') { console.log('Unable to access network'); diff --git a/examples/waitfor.coffee b/examples/waitfor.coffee index 2f506c0a..94e86485 100644 --- a/examples/waitfor.coffee +++ b/examples/waitfor.coffee @@ -32,10 +32,6 @@ waitFor = (testFx, onReady, timeOutMillis=3000) -> page = new WebPage() -# Route "console.log()" calls from within the Page context to the main Phantom context (i.e. current "this") -page.onConsoleMessage = (msg) -> - console.log msg - # Open Twitter on 'sencha' profile and, onPageLoad, do... page.open 'http://twitter.com/#!/sencha', (status) -> # Check for page load success diff --git a/examples/waitfor.js b/examples/waitfor.js index 9c24ca92..2baa18b1 100644 --- a/examples/waitfor.js +++ b/examples/waitfor.js @@ -36,11 +36,6 @@ function waitFor(testFx, onReady, timeOutMillis) { var page = new WebPage(); -// Route "console.log()" calls from within the Page context to the main Phantom context (i.e. current "this") -page.onConsoleMessage = function(msg) { - console.log(msg); -}; - // Open Twitter on 'sencha' profile and, onPageLoad, do... page.open("http://twitter.com/#!/sencha", function (status) { // Check for page load success