diff options
| author | Vojta Jina | 2012-03-07 12:17:48 -0800 |
|---|---|---|
| committer | Vojta Jina | 2012-03-08 11:38:14 -0800 |
| commit | b348347dadfa0abe3442ff0bdbc52d8077621e95 (patch) | |
| tree | 69a73d34aa2c8af83965c564413ffb965840d26a /src/Angular.js | |
| parent | 512db03cc003c590a9dcd2b1ee1f3fb2cbad1b78 (diff) | |
| download | angular.js-b348347dadfa0abe3442ff0bdbc52d8077621e95.tar.bz2 | |
refactor(fromJson): Remove error() and just throw
It's more likely you are using angular.fromJson() inside Angular world, which means you get proper
exception handling by $exceptionHandler.
There is no point to explicitly push it to console and it causes memory leaks on most browsers
(tried Chrome stable/canary, Safari, FF).
Diffstat (limited to 'src/Angular.js')
| -rw-r--r-- | src/Angular.js | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/Angular.js b/src/Angular.js index 1265ad9f..57c86417 100644 --- a/src/Angular.js +++ b/src/Angular.js @@ -83,9 +83,6 @@ var $boolean = 'boolean', slice = [].slice, push = [].push, toString = Object.prototype.toString, - error = window[$console] - ? bind(window[$console], window[$console]['error'] || noop) - : noop, /** @name angular */ angular = window.angular || (window.angular = {}), |
