Hope can fix on IE, not tested
This commit is contained in:
parent
1ad149e15c
commit
7f2bbf0326
|
@ -0,0 +1,19 @@
|
||||||
|
// var ie_console_alertFallback = true;
|
||||||
|
// var ie_console_divFallback = true;
|
||||||
|
|
||||||
|
if (typeof console === "undefined" || typeof console.log === "undefined") {
|
||||||
|
console = {};
|
||||||
|
|
||||||
|
if (typeof ie_console_divFallback != "undefined") {
|
||||||
|
console.log = function(msg) {
|
||||||
|
$('#ie_console_debug_div').append(msg);
|
||||||
|
$('#ie_console_debug_div').append("<br>");
|
||||||
|
}
|
||||||
|
} else if (typeof ie_console_alertFallback != "undefined" ) {
|
||||||
|
console.log = function(msg) {
|
||||||
|
alert(msg);
|
||||||
|
};
|
||||||
|
} else {
|
||||||
|
console.log = function() {};
|
||||||
|
}
|
||||||
|
}
|
|
@ -687,6 +687,7 @@
|
||||||
<!-- Le javascript
|
<!-- Le javascript
|
||||||
================================================== -->
|
================================================== -->
|
||||||
<!-- Placed at the end of the document so the pages load faster -->
|
<!-- Placed at the end of the document so the pages load faster -->
|
||||||
|
<script src="assets/js/ie-console.js"></script>
|
||||||
<script src="assets/js/jquery-1.9.1.min.js"></script>
|
<script src="assets/js/jquery-1.9.1.min.js"></script>
|
||||||
<script src="assets/js/handlebars.js"></script>
|
<script src="assets/js/handlebars.js"></script>
|
||||||
<script src="assets/js/ember-1.0.0-rc.1.js"></script>
|
<script src="assets/js/ember-1.0.0-rc.1.js"></script>
|
||||||
|
|
Loading…
Reference in New Issue