From 517a51194bd4644d35ace647a0166c2384725dd9 Mon Sep 17 00:00:00 2001 From: Saophalkun Ponlu Date: Fri, 17 Dec 2010 01:39:56 +0000 Subject: [PATCH] BUGFIX: javascript console replacement's condition is incorrect git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@115158 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- thirdparty/firebug-lite/firebug.js | 2 +- thirdparty/firebug-lite/firebugx.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/thirdparty/firebug-lite/firebug.js b/thirdparty/firebug-lite/firebug.js index 14eaad2e8..e5eee60d0 100644 --- a/thirdparty/firebug-lite/firebug.js +++ b/thirdparty/firebug-lite/firebug.js @@ -1,5 +1,5 @@ -if (!window.console || !console.firebug) { +if (!window.console && !console.firebug) { (function() { window.console = diff --git a/thirdparty/firebug-lite/firebugx.js b/thirdparty/firebug-lite/firebugx.js index 343686250..5f2e521e7 100644 --- a/thirdparty/firebug-lite/firebugx.js +++ b/thirdparty/firebug-lite/firebugx.js @@ -1,5 +1,5 @@ -if (!window.console || !console.firebug) +if (!window.console && !console.firebug) { var names = ["log", "debug", "info", "warn", "error", "assert", "dir", "dirxml", "group", "groupEnd", "time", "timeEnd", "count", "trace", "profile", "profileEnd"];