@@ -66,8 +66,8 @@ function fromJson(json, useNative) {
66
66
}
67
67
}
68
68
69
- angular [ ' toJson' ] = toJson ;
70
- angular [ ' fromJson' ] = fromJson ;
69
+ angular . toJson = toJson ;
70
+ angular . fromJson = fromJson ;
71
71
72
72
function toJsonArray ( buf , obj , pretty , stack ) {
73
73
if ( isObject ( obj ) ) {
@@ -90,7 +90,7 @@ function toJsonArray(buf, obj, pretty, stack) {
90
90
if ( obj === null ) {
91
91
buf . push ( $null ) ;
92
92
} else if ( obj instanceof RegExp ) {
93
- buf . push ( angular [ ' String' ] [ ' quoteUnicode' ] ( obj . toString ( ) ) ) ;
93
+ buf . push ( angular . String . quoteUnicode ( obj . toString ( ) ) ) ;
94
94
} else if ( isFunction ( obj ) ) {
95
95
return ;
96
96
} else if ( isBoolean ( obj ) ) {
@@ -102,7 +102,7 @@ function toJsonArray(buf, obj, pretty, stack) {
102
102
buf . push ( '' + obj ) ;
103
103
}
104
104
} else if ( isString ( obj ) ) {
105
- return buf . push ( angular [ ' String' ] [ ' quoteUnicode' ] ( obj ) ) ;
105
+ return buf . push ( angular . String . quoteUnicode ( obj ) ) ;
106
106
} else if ( isObject ( obj ) ) {
107
107
if ( isArray ( obj ) ) {
108
108
buf . push ( "[" ) ;
@@ -120,7 +120,7 @@ function toJsonArray(buf, obj, pretty, stack) {
120
120
}
121
121
buf . push ( "]" ) ;
122
122
} else if ( isDate ( obj ) ) {
123
- buf . push ( angular [ ' String' ] [ ' quoteUnicode' ] ( angular [ ' Date' ] [ ' toString' ] ( obj ) ) ) ;
123
+ buf . push ( angular . String . quoteUnicode ( angular . Date . toString ( obj ) ) ) ;
124
124
} else {
125
125
buf . push ( "{" ) ;
126
126
if ( pretty ) buf . push ( pretty ) ;
@@ -141,7 +141,7 @@ function toJsonArray(buf, obj, pretty, stack) {
141
141
buf . push ( "," ) ;
142
142
if ( pretty ) buf . push ( pretty ) ;
143
143
}
144
- buf . push ( angular [ ' String' ] [ ' quote' ] ( key ) ) ;
144
+ buf . push ( angular . String . quote ( key ) ) ;
145
145
buf . push ( ":" ) ;
146
146
toJsonArray ( buf , value , childPretty , stack ) ;
147
147
comma = true ;
0 commit comments