In IE9 console.log.apply does not exist

master-patched
dusko 12 years ago
parent 6fcec751ed
commit a389224dbd

@ -34,7 +34,7 @@ if (nv.dev) {
// Logs all arguments, and returns the last so you can test things in place // Logs all arguments, and returns the last so you can test things in place
nv.log = function() { nv.log = function() {
if (nv.dev && console.log) console.log.apply(console, arguments); if (nv.dev && console.log && console.log.apply) console.log.apply(console, arguments);
return arguments[arguments.length - 1]; return arguments[arguments.length - 1];
}; };

Loading…
Cancel
Save