@@ -66,8 +66,8 @@ function fromJson(json, useNative) {
6666 }
6767}
6868
69- angular [ ' toJson' ] = toJson ;
70- angular [ ' fromJson' ] = fromJson ;
69+ angular . toJson = toJson ;
70+ angular . fromJson = fromJson ;
7171
7272function toJsonArray ( buf , obj , pretty , stack ) {
7373 if ( isObject ( obj ) ) {
@@ -90,7 +90,7 @@ function toJsonArray(buf, obj, pretty, stack) {
9090 if ( obj === null ) {
9191 buf . push ( $null ) ;
9292 } else if ( obj instanceof RegExp ) {
93- buf . push ( angular [ ' String' ] [ ' quoteUnicode' ] ( obj . toString ( ) ) ) ;
93+ buf . push ( angular . String . quoteUnicode ( obj . toString ( ) ) ) ;
9494 } else if ( isFunction ( obj ) ) {
9595 return ;
9696 } else if ( isBoolean ( obj ) ) {
@@ -102,7 +102,7 @@ function toJsonArray(buf, obj, pretty, stack) {
102102 buf . push ( '' + obj ) ;
103103 }
104104 } else if ( isString ( obj ) ) {
105- return buf . push ( angular [ ' String' ] [ ' quoteUnicode' ] ( obj ) ) ;
105+ return buf . push ( angular . String . quoteUnicode ( obj ) ) ;
106106 } else if ( isObject ( obj ) ) {
107107 if ( isArray ( obj ) ) {
108108 buf . push ( "[" ) ;
@@ -120,7 +120,7 @@ function toJsonArray(buf, obj, pretty, stack) {
120120 }
121121 buf . push ( "]" ) ;
122122 } else if ( isDate ( obj ) ) {
123- buf . push ( angular [ ' String' ] [ ' quoteUnicode' ] ( angular [ ' Date' ] [ ' toString' ] ( obj ) ) ) ;
123+ buf . push ( angular . String . quoteUnicode ( angular . Date . toString ( obj ) ) ) ;
124124 } else {
125125 buf . push ( "{" ) ;
126126 if ( pretty ) buf . push ( pretty ) ;
@@ -141,7 +141,7 @@ function toJsonArray(buf, obj, pretty, stack) {
141141 buf . push ( "," ) ;
142142 if ( pretty ) buf . push ( pretty ) ;
143143 }
144- buf . push ( angular [ ' String' ] [ ' quote' ] ( key ) ) ;
144+ buf . push ( angular . String . quote ( key ) ) ;
145145 buf . push ( ":" ) ;
146146 toJsonArray ( buf , value , childPretty , stack ) ;
147147 comma = true ;
0 commit comments