Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

get() misses parameter object properties defined on prototype #1463

Open
dmytro-shchurov opened this issue Feb 27, 2017 · 0 comments
Open

get() misses parameter object properties defined on prototype #1463

dmytro-shchurov opened this issue Feb 27, 2017 · 0 comments

Comments

@dmytro-shchurov
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant