Skip to content

Commit

Permalink
logging utils
Browse files Browse the repository at this point in the history
  • Loading branch information
arshaw committed Aug 15, 2015
1 parent 52e27bc commit f431e77
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions src/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -531,6 +531,25 @@ function isTimeString(str) {
}


/* Logging and Debug
----------------------------------------------------------------------------------------------------------------------*/

fc.log = function() {
if (window.console && window.console.log) {
return console.log.apply(console, arguments);
}
};

fc.warn = function() {
if (window.console && window.console.warn) {
return console.warn.apply(console, arguments);
}
else {
return fc.log.apply(fc, arguments);
}
};


/* General Utilities
----------------------------------------------------------------------------------------------------------------------*/

Expand Down

0 comments on commit f431e77

Please sign in to comment.