From e134a8335f5ee7d2e81034ed93f3e465cb14573f Mon Sep 17 00:00:00 2001 From: Misko Hevery Date: Wed, 17 Aug 2011 12:21:43 -0700 Subject: fix(filter): make json filter ignore private properties --- src/filters.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/filters.js') diff --git a/src/filters.js b/src/filters.js index 6a136f92..c5d886ea 100644 --- a/src/filters.js +++ b/src/filters.js @@ -254,7 +254,6 @@ var GET_TIME_ZONE = /[A-Z]{3}(?![+\-])/, OPERA_TOSTRING_PATTERN = /^[\d].*Z$/, NUMBER_STRING = /^\d+$/; - /** * @workInProgress * @ngdoc filter @@ -409,7 +408,7 @@ angularFilter.date = function(date, format) { */ angularFilter.json = function(object) { this.$element.addClass("ng-monospace"); - return toJson(object, true); + return toJson(object, true, /^(\$|this$)/); }; -- cgit v1.2.3