From b348347dadfa0abe3442ff0bdbc52d8077621e95 Mon Sep 17 00:00:00 2001 From: Vojta Jina Date: Wed, 7 Mar 2012 12:17:48 -0800 Subject: 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). --- src/Angular.js | 3 --- 1 file changed, 3 deletions(-) (limited to 'src/Angular.js') 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 = {}), -- cgit v1.2.3