You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What specific section or headline is this issue about?
First two code examples
What information was incorrect, unhelpful, or incomplete?
The calls to window.requestAnimationFrame(draw);
in the first sample and window.requestAnimationFrame(clock);
in the second sample inconsistently use the window reference when using DOM API's
What did you expect to see?
I expected not to see the reference to window requestAnimationFrame(draw);
and requestAnimationFrame(clock);
in the second sample
Do you have any supporting links, references, or citations?
The last sample is consistent with the implied use of window.
It shows consistent reference via implied window as follows requestAnimationFrame(anim)
As do all samples showing implied window reference for document rather than window.document
Do you have anything more you want to share?
Maybe a second issue? The first sample uses Date to get a time to used to animate content rather than use the time parameter (not defined in the sample) passed to the requestAnimationFrame callback.
MDN URL
https://developer.mozilla.org/en-US/docs/Web/API/Canvas_API/Tutorial/Basic_animations
What specific section or headline is this issue about?
First two code examples
What information was incorrect, unhelpful, or incomplete?
The calls to
window.requestAnimationFrame(draw);
in the first sample and
window.requestAnimationFrame(clock);
in the second sample inconsistently use the
window
reference when using DOM API'sWhat did you expect to see?
I expected not to see the reference to window
requestAnimationFrame(draw);
and
requestAnimationFrame(clock);
in the second sample
Do you have any supporting links, references, or citations?
The last sample is consistent with the implied use of
window
.It shows consistent reference via implied
window
as followsrequestAnimationFrame(anim)
As do all samples showing implied window reference for
document
rather thanwindow.document
Do you have anything more you want to share?
Maybe a second issue? The first sample uses
Date
to get a time to used to animate content rather than use the time parameter (not defined in the sample) passed to therequestAnimationFrame
callback.MDN metadata
Page report details
en-us/web/api/canvas_api/tutorial/basic_animations
The text was updated successfully, but these errors were encountered: