UNPKG
todomvc
Version:
latest (0.1.1)
0.1.1
0.1.0
> Helping you select an MV\* framework
todomvc
/
examples
/
durandal
/
js
/
viewmodels
/
todoapp.js
17 lines
(14 loc)
•
261 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/*global define */
define
([
'js/viewmodels/shell'
],
function
(
shell
) {
'use strict'
;
var
ViewModel
=
function
(
) {
var
self =
this
; self.
activate
=
function
(
context
) { shell.
filter
= context.
filter
;
return
true
; }; };
return
ViewModel
; });