Skip to content

Commit

Permalink
added warn and error but which do the same as log
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryan Willoughby committed Jul 8, 2010
1 parent 8fa0904 commit 85069c1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions js/debugconsole.js
Expand Up @@ -20,13 +20,15 @@ DebugConsole.prototype.log = function(message) {
* @param {Object|String} message Message or object to print to the console
*/
DebugConsole.prototype.warn = function(message) {
console.log(message);
};

/**
* Print an error message to the console
* @param {Object|String} message Message or object to print to the console
*/
DebugConsole.prototype.error = function(message) {
console.log(message);
};

if (typeof window.debug == "undefined") window.debug = new DebugConsole();

0 comments on commit 85069c1

Please sign in to comment.