From a389224dbd21da6a4956a8ba85dfc64cc7659f3f Mon Sep 17 00:00:00 2001 From: dusko Date: Tue, 4 Sep 2012 10:58:48 +0200 Subject: [PATCH] In IE9 console.log.apply does not exist --- src/core.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core.js b/src/core.js index 8d164aa..2aa9146 100644 --- a/src/core.js +++ b/src/core.js @@ -34,7 +34,7 @@ if (nv.dev) { // Logs all arguments, and returns the last so you can test things in place 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]; };