UNPKG
todomvc
Version:
latest (0.1.1)
0.1.1
0.1.0
> Helping you select an MV\* framework
todomvc
/
examples
/
mithril
/
js
/
app.js
13 lines
(10 loc)
•
195 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
'use strict'
;
/*global m */
var
app = app || {}; app.
ENTER_KEY
=
13
; app.
ESC_KEY
=
27
; m.
route
.
mode
=
'hash'
; m.
route
(
document
.
getElementById
(
'todoapp'
),
'/'
, {
'/'
: app,
'/:filter'
: app });