Skip to content
This repository has been archived by the owner on Feb 16, 2020. It is now read-only.

Change the order of the subtract function params in the moment.js #1583

Merged
merged 5 commits into from
Feb 3, 2018
Merged

Change the order of the subtract function params in the moment.js #1583

merged 5 commits into from
Feb 3, 2018

Conversation

cloggy45
Copy link
Contributor

  • What kind of change does this PR introduce? (Bug fix, feature, docs update, ...)

Bug fix

  • What is the current behavior? (You can also link to an open issue here)

It currently spams Deprecation warning: moment().subtract(period, number) is deprecated. Please use moment().subtract(number, period). when running in real time mode.

  • What is the new behavior (if this is a feature change)?

It removes this specific message.

  • Other information:

I know there is an exact same issue with the add function that I will look into also.

@askmike
Copy link
Owner

askmike commented Feb 3, 2018

👍

@askmike askmike merged commit 9115d54 into askmike:develop Feb 3, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants