Index: sky/examples/fps-counter.sky |
diff --git a/sky/examples/fps-counter.sky b/sky/examples/fps-counter.sky |
index 21fa0a1ce650926588e845120f66547ef7baa1e4..e560d064f117ce6662959481e16a03c2ef1d1cbb 100644 |
--- a/sky/examples/fps-counter.sky |
+++ b/sky/examples/fps-counter.sky |
@@ -26,11 +26,9 @@ module.exports = class extends SkyElement { |
this.rafId = 0; |
this.currentDeltaIndex = 0; |
this.deltas = new Array(kMaxDeltaLength); |
- for (var i = 0; i < kMaxDeltaLength; ++i) |
- this.deltas[i] = 0; |
+ this.deltas.fill(0); |
this.history = new Array(kMaxDeltaLength); |
- for (var i = 0; i < kMaxDeltaLength; ++i) |
- this.history[i] = 0; |
+ this.history.fill(0); |
} |
attached() { |
this.scheduleTick(); |