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

Deprecate usage of begin as a delay and provide a delay attribute, instead. #1508

Merged
merged 17 commits into from
May 27, 2016

Conversation

msimpson
Copy link
Contributor

@msimpson msimpson commented May 27, 2016

Start to address the concerns raised in #1401.

// Deprecation warning for begin when used as a delay.
if (data.begin !== '' && !isNaN(data.begin)) {
console.warn("Using 'begin' to specify a delay is deprecated. Use 'delay' instead.");
data.delay = cloneValue(data.begin);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't think you need to clone because it's just a number.

@@ -161,7 +161,7 @@ module.exports.AAnimation = registerElement('a-animation', {
// Deprecation warning for begin when used as a delay.
if (data.begin !== '' && !isNaN(data.begin)) {
console.warn("Using 'begin' to specify a delay is deprecated. Use 'delay' instead.");
data.delay = cloneValue(data.begin);
data.delay = data.begin;
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Gotcha.

@ngokevin ngokevin merged commit f0e6e09 into aframevr:master May 27, 2016
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.

2 participants