Skip to content

Ember Should Deprecate incrementProperty and decrementProperty #341

@jherdman

Description

@jherdman

As we move into a world where we can access properties via POJO getters, incrementProperty and decrementProperty stick out on EmberObject as relics of time when a lot of convenience methods were provided for you. Outside of special case scenarios, these methods could be replaced as such:

this.counter += 1;

this.counter -= 1;

Therefore, to reduce magic and surprise, I'd like to recommend the deprecation of these methods.

An alternative approach is simply to do nothing given that #337 indicates that EmberObject, itself, will be deprecated at some future date. Thus any work done in trimming it down may be considered wasted effort.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions