Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

added window.console shim for IE

  • Loading branch information...
commit 2c164208e245008207689c571496bdaac76cebb6 1 parent d3057ef
@rauhryan rauhryan authored
View
10 public/scripts/firebugx.js
@@ -0,0 +1,10 @@
+
+if (!window.console || !console.firebug)
+{
+ var names = ["log", "debug", "info", "warn", "error", "assert", "dir", "dirxml",
+ "group", "groupEnd", "time", "timeEnd", "count", "trace", "profile", "profileEnd"];
+
+ window.console = {};
+ for (var i = 0; i < names.length; ++i)
+ window.console[names[i]] = function() {}
+}
View
1  views/layout.erb
@@ -5,6 +5,7 @@
<link rel="shortcut icon" type="image/png" href="/images/favicon.png" />
<!-- This is a special version of jQuery with RequireJS built-in -->
+ <script src="/scripts/firebugx.js" type="text/javascript" charset="utf-8"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js" type="text/javascript" charset="utf-8"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.16/jquery-ui.min.js" type="text/javascript" charset="utf-8"></script>
<script src="/scripts/underscore.js" type="text/javascript" charset="utf-8"></script>
View
1  views/layout_fluid.erb
@@ -4,6 +4,7 @@
<title>Huboard</title>
<link rel="shortcut icon" type="image/png" href="/images/favicon.png" />
<!-- This is a special version of jQuery with RequireJS built-in -->
+ <script src="/scripts/firebugx.js" type="text/javascript" charset="utf-8"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js" type="text/javascript" charset="utf-8"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.16/jquery-ui.min.js" type="text/javascript" charset="utf-8"></script>
<script src="/scripts/underscore.js" type="text/javascript" charset="utf-8"></script>
Please sign in to comment.
Something went wrong with that request. Please try again.