OO-ize DOM builder, improve performance (part 1), add benchmarking suite
This commit is contained in:
parent
c202c04631
commit
a7b2294c11
22 changed files with 1953 additions and 813 deletions
13
bench/app/js/app.js
Normal file
13
bench/app/js/app.js
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
/* global m */
|
||||
(function (app) {
|
||||
"use strict"
|
||||
|
||||
app.ENTER_KEY = 13
|
||||
app.ESC_KEY = 27
|
||||
|
||||
m.route.mode = "hash"
|
||||
m.route(document.getElementById("todoapp"), "/", {
|
||||
"/": app,
|
||||
"/:filter": app
|
||||
})
|
||||
})(this.app || (this.app = {}))
|
||||
Loading…
Add table
Add a link
Reference in a new issue