@@ -2392,7 +2392,7 @@ function DSLocalStorageAdapterProvider() {
23922392 if ( item ) {
23932393 DSUtils . deepMixIn ( item , value ) ;
23942394 }
2395- localStorage . setItem ( key , angular . toJson ( item || value ) ) ;
2395+ localStorage . setItem ( key , JSON . stringify ( item || value ) ) ;
23962396 return DSLocalStorageAdapter . GET ( key ) ;
23972397 } ) ;
23982398 } ,
@@ -4218,7 +4218,7 @@ Defaults.prototype.defaultFilter = function (collection, resourceName, params, o
42184218 if ( _this . utils . isString ( def ) ) {
42194219 def = [ def , 'ASC' ] ;
42204220 } else if ( ! _this . utils . isArray ( def ) ) {
4221- throw new _this . errors . IllegalArgumentError ( 'DS.filter(resourceName[, params][, options]): ' + angular . toJson ( def ) + ': Must be a string or an array!' , {
4221+ throw new _this . errors . IllegalArgumentError ( 'DS.filter(resourceName[, params][, options]): ' + JSON . stringify ( def ) + ': Must be a string or an array!' , {
42224222 params : {
42234223 'orderBy[i]' : {
42244224 actual : typeof def ,
@@ -7716,7 +7716,7 @@ module.exports = ['$q', function ($q) {
77167716 isFunction : angular . isFunction ,
77177717 isEmpty : require ( 'mout/lang/isEmpty' ) ,
77187718 isRegExp : isRegExp ,
7719- toJson : angular . toJson ,
7719+ toJson : JSON . stringify ,
77207720 fromJson : angular . fromJson ,
77217721 makePath : require ( 'mout/string/makePath' ) ,
77227722 upperCase : require ( 'mout/string/upperCase' ) ,
0 commit comments