incubator-blur-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cr...@apache.org
Subject [1/3] git commit: remove alert and add header
Date Thu, 29 May 2014 11:37:22 GMT
Repository: incubator-blur
Updated Branches:
  refs/heads/console-v2 ba2283571 -> 455393241


remove alert and add header

Signed-off-by: Chris Rohr <crohr@nearinfinity.com>


Project: http://git-wip-us.apache.org/repos/asf/incubator-blur/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-blur/commit/47b89ce5
Tree: http://git-wip-us.apache.org/repos/asf/incubator-blur/tree/47b89ce5
Diff: http://git-wip-us.apache.org/repos/asf/incubator-blur/diff/47b89ce5

Branch: refs/heads/console-v2
Commit: 47b89ce51a62420a3774d5fa7d2a313e804390f5
Parents: 748ef4d
Author: Andrew Avenoso <andrew.va@gmail.com>
Authored: Wed May 28 16:52:16 2014 -0400
Committer: Chris Rohr <crohr@nearinfinity.com>
Committed: Thu May 29 07:21:32 2014 -0400

----------------------------------------------------------------------
 .../src/main/webapp/js/blurconsole.overrides.js | 30 ++++++++++++++++++--
 1 file changed, 27 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/47b89ce5/contrib/blur-console/src/main/webapp/js/blurconsole.overrides.js
----------------------------------------------------------------------
diff --git a/contrib/blur-console/src/main/webapp/js/blurconsole.overrides.js b/contrib/blur-console/src/main/webapp/js/blurconsole.overrides.js
index 55cf3ba..a4fd1a6 100644
--- a/contrib/blur-console/src/main/webapp/js/blurconsole.overrides.js
+++ b/contrib/blur-console/src/main/webapp/js/blurconsole.overrides.js
@@ -1,8 +1,32 @@
-alert(typeof console)
-if (typeof console == 'undefined') {
+/*
+
+Licensed to the Apache Software Foundation (ASF) under one
+or more contributor license agreements.  See the NOTICE file
+distributed with this work for additional information
+regarding copyright ownership.  The ASF licenses this file
+to you under the Apache License, Version 2.0 (the
+"License"); you may not use this file except in compliance
+with the License.  You may obtain a copy of the License at
+
+  http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing,
+software distributed under the License is distributed on an
+"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+KIND, either express or implied.  See the License for the
+specific language governing permissions and limitations
+under the License.
+*/
+
+/*
+ * blurconsole.overrides.js
+ * File to override globals
+ */
+/*global console:false */
+if (typeof console === 'undefined') {
   console = {
     log: function() {
-      if(typeof blurconsole != 'undefined' && typeof blurconsole.model != 'undefined'
&& typeof blurconsole.model.logs != 'undefined') {
+      if(typeof blurconsole !== 'undefined' && typeof blurconsole.model !== 'undefined'
&& typeof blurconsole.model.logs !== 'undefined') {
         var args = Array.prototype.slice.call(arguments);
         blurconsole.model.logs.logError(args.join(' '), 'javascript');
       }


Mime
View raw message