Add deadlyicon console fix for safari

This commit is contained in:
ragaskar
2009-10-29 19:48:23 -07:00
parent cf6d26d25f
commit 328cc89980
27 changed files with 1184 additions and 1139 deletions

View File

@@ -116,14 +116,4 @@ jasmine.TrivialReporter.prototype.specFilter = function(spec) {
if (!paramMap["spec"]) return true;
return spec.getFullName().indexOf(paramMap["spec"]) == 0;
};
//protect against console.log incidents
if (!("console" in window) || !("firebug" in console)) {
var names = ["log", "debug", "info", "warn", "error", "assert", "dir", "dirxml", "group", "groupEnd", "time", "timeEnd", "count", "trace", "profile", "profileEnd"];
window.console = {};
for (var i = 0, len = names.length; i < len; ++i) {
window.console[names[i]] = function() {
};
}
}
};