diff options
| author | Colin Casey | 2013-09-20 21:33:16 -0300 | 
|---|---|---|
| committer | Brian Ford | 2013-09-27 16:44:21 -0700 | 
| commit | 4ff1a65031e985bf930f6761c1ecf46e4db98d6e (patch) | |
| tree | 9379887dfc410691c02bde62ba78210b1c6b87ad /src/ng/log.js | |
| parent | 21527db747ed24ba352b04aa6386550fae3c5fab (diff) | |
| download | angular.js-4ff1a65031e985bf930f6761c1ecf46e4db98d6e.tar.bz2 | |
fix(log): prevent logging `undefined` for $log in IE
Closes #1705
Diffstat (limited to 'src/ng/log.js')
| -rw-r--r-- | src/ng/log.js | 2 | 
1 files changed, 1 insertions, 1 deletions
| 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);        }      }    }]; | 
