mirror of
https://github.com/konvajs/konva.git
synced 2026-01-22 21:02:26 +08:00
prettier
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
window.requestAnimFrame = (function(callback) {
|
||||
window.requestAnimFrame = (function (callback) {
|
||||
return (
|
||||
window.requestAnimationFrame ||
|
||||
window.webkitRequestAnimationFrame ||
|
||||
window.mozRequestAnimationFrame ||
|
||||
window.oRequestAnimationFrame ||
|
||||
window.msRequestAnimationFrame ||
|
||||
function(callback) {
|
||||
function (callback) {
|
||||
window.setTimeout(callback, 1000 / 30);
|
||||
}
|
||||
);
|
||||
@@ -20,7 +20,7 @@ document.body.appendChild(stats.domElement);
|
||||
|
||||
function setStats() {
|
||||
stats.begin();
|
||||
requestAnimFrame(function() {
|
||||
requestAnimFrame(function () {
|
||||
stats.end();
|
||||
setStats();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user