UNPKG
todomvc
Version:
latest (0.1.1)
0.1.1
0.1.0
> Helping you select an MV\* framework
todomvc
/
examples
/
backbone_marionette_require
/
js
/
controllers
/
index.js
13 lines
(11 loc)
•
194 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
/*global define */
define
([
'app'
],
function
(
app
) {
'use strict'
;
return
{
setFilter
:
function
(
param
) { app.
vent
.
trigger
(
'todoList:filter'
, param && param.
trim
() ||
''
); } }; });