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

make setting a date to the same value NOT emit a change #345

Open
justinbmeyer opened this issue Jun 15, 2018 · 0 comments
Open

make setting a date to the same value NOT emit a change #345

justinbmeyer opened this issue Jun 15, 2018 · 0 comments

Comments

@justinbmeyer
Copy link
Contributor

if I do:

var now = new Date();

map = new DefineMap({time: now});

map.time = new Date(now.getTime())

it emits a change event. There is a new date, that is mutable, but this feels unnecessary.

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