Skip to content

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

Open

Description

@dmytro-shchurov

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions