Skip to content

Commit 31e2dbc

Browse files
committed
use animation best practices in dbmon
1 parent fd98b7a commit 31e2dbc

File tree

8 files changed

+48
-2299
lines changed

8 files changed

+48
-2299
lines changed

dbmonster/angular/app.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,10 @@ var AppComponent = ng.core.Component({selector: "my-app"})
3232
this.update()
3333
},
3434
update: function() {
35+
requestAnimationFrame(function() {self.update()})
36+
3537
var self = this
3638
self.databases = ENV.generateData().toArray()
37-
setTimeout(function() {self.update()}, ENV.timeout)
3839

3940
if (renderStage === 0) {
4041
renderStage = 1

dbmonster/mithril-0.2.x/app.js

Lines changed: 0 additions & 44 deletions
This file was deleted.

dbmonster/mithril-0.2.x/index.html

Lines changed: 0 additions & 17 deletions
This file was deleted.

0 commit comments

Comments
 (0)