mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-22 07:19:57 -05:00
Clean up comments.
This commit is contained in:
parent
b5a3392048
commit
84d321bd56
1 changed files with 3 additions and 3 deletions
|
@ -62,13 +62,13 @@ var Event = {
|
|||
|
||||
Event.requestAnimationFrame = new function() {
|
||||
var part = 'equestAnimationFrame',
|
||||
// Chrome shipped without the time arg in m10
|
||||
request = window['r' + part] || window['webkitR' + part]
|
||||
|| window['mozR' + part] || window['oR' + part]
|
||||
|| window['msR' + part];
|
||||
if (request) {
|
||||
// Check if time is defined in callbacks, and if not, clear request
|
||||
// again so we won't use the faulty method.
|
||||
// Chrome shipped without the time arg in m10. We need to check if time
|
||||
// is defined in callbacks, and if not, clear request again so we won't
|
||||
// use the faulty method.
|
||||
request(function(time) {
|
||||
if (time == undefined)
|
||||
request = null;
|
||||
|
|
Loading…
Reference in a new issue