From 4ff1a65031e985bf930f6761c1ecf46e4db98d6e Mon Sep 17 00:00:00 2001 From: Colin Casey Date: Fri, 20 Sep 2013 21:33:16 -0300 Subject: fix(log): prevent logging `undefined` for $log in IE Closes #1705 --- src/ng/log.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/ng/log.js') diff --git a/src/ng/log.js b/src/ng/log.js index e0a1aec3..0678ac21 100644 --- a/src/ng/log.js +++ b/src/ng/log.js @@ -151,7 +151,7 @@ function $LogProvider(){ // we are IE which either doesn't have window.console => this is noop and we do nothing, // or we are IE where console.log doesn't have apply so we log at least first 2 args return function(arg1, arg2) { - logFn(arg1, arg2); + logFn(arg1, arg2 == null ? '' : arg2); } } }]; -- cgit v1.2.3