Added missing console.info dummy function

This commit is contained in:
Andreas Stöckel 2010-07-01 13:52:55 +00:00
parent 2768366eb6
commit 0867ed78d8

View File

@ -39,6 +39,23 @@ else if (document.layers)
is_ns4 = true;
}
/**
* Check whether the console object is defined - if not, define one
*/
if (typeof window.console == 'undefined')
{
window.console = {
'log': function() {
},
'warn': function() {
},
'error': function() {
},
'info': function() {
}
}
}
/**
* Seperates all script tags from the given html code and returns the seperately
* @param object _html object that the html code from which the script should be seperated. The html code has to be stored in _html.html, the result js will be written to _html.js