restangular icon indicating copy to clipboard operation
restangular copied to clipboard

get() misses parameter object properties defined on prototype

Open dmytro-shchurov opened this issue 8 years ago • 0 comments

Because of angular.forEach() does not enumerate properties defined as Object.defineProperty(object_prototype,...{get:... set:...}), restangular.get() misses such properties, despite of the object overrides toJSON(). I think, that restangular.js @791 angular.forEach(value, function(v) { must looks like angular.forEach(value.toJSON(), function(v) { to mimic the same way as restangulat.post() does

dmytro-shchurov avatar Feb 27 '17 14:02 dmytro-shchurov