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

[breaking] Use native Date.now() #166

Merged
merged 1 commit into from
Feb 2, 2016

Conversation

tricknotes
Copy link
Contributor

Ember doesn't support IE < 9 anymore.

@tricknotes
Copy link
Contributor Author

This PR will conflict with #165.
I'll rebase after the one of them landed.

Ember doesn't support IE < 9 anymore.
@stefanpenner
Copy link
Collaborator

Lgtm

@tricknotes
Copy link
Contributor Author

Thanks!
Now I rebased.

@stefanpenner
Copy link
Collaborator

Will merge when ci completes

rwjblue added a commit that referenced this pull request Feb 2, 2016
@rwjblue rwjblue merged commit 8b6e7e9 into BackburnerJS:master Feb 2, 2016
@tricknotes tricknotes deleted the use-native-date-now branch February 2, 2016 16:00
alias-mac added a commit to alias-mac/backburner.js that referenced this pull request Sep 21, 2017
This allow us to use fake timers, such as `sinon.useFakeTimers`, to
check the state of the app during the run loop.

For example: if a popup is supposed to be triggered in X ms from now and
it will show to the user during Y ms, then this will allow us to use
fake timers to pause between X and Y and check the state of the Ember
app at that exact time.

This is related with BackburnerJS#263, BackburnerJS#179 and BackburnerJS#166.

If someone needs to have the backburner clock separate from the global
stubbed clock (as explained in BackburnerJS#179), then `_platform.now` config should
be used to pass the native `Date.now` function.
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

Successfully merging this pull request may close these issues.

3 participants