Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
T
todomvc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Eugene Shen
todomvc
Commits
d1198bb2
Commit
d1198bb2
authored
Apr 08, 2015
by
Arthur Verschaeve
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Spine: compile using latest coffee
parent
5acb4b96
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
39 additions
and
39 deletions
+39
-39
examples/spine/js/app.js
examples/spine/js/app.js
+20
-20
examples/spine/js/controllers/todos.js
examples/spine/js/controllers/todos.js
+7
-7
examples/spine/js/models/todo.js
examples/spine/js/models/todo.js
+12
-12
No files found.
examples/spine/js/app.js
View file @
d1198bb2
// Generated by CoffeeScript 1.
7
.1
// Generated by CoffeeScript 1.
9
.1
(
function
()
{
(
function
()
{
var
TodoApp
,
var
TodoApp
,
__
bind
=
function
(
fn
,
me
){
return
function
(){
return
fn
.
apply
(
me
,
arguments
);
};
},
bind
=
function
(
fn
,
me
){
return
function
(){
return
fn
.
apply
(
me
,
arguments
);
};
},
__hasProp
=
{}.
hasOwnProperty
,
extend
=
function
(
child
,
parent
)
{
for
(
var
key
in
parent
)
{
if
(
hasProp
.
call
(
parent
,
key
))
child
[
key
]
=
parent
[
key
];
}
function
ctor
()
{
this
.
constructor
=
child
;
}
ctor
.
prototype
=
parent
.
prototype
;
child
.
prototype
=
new
ctor
();
child
.
__super__
=
parent
.
prototype
;
return
child
;
}
,
__extends
=
function
(
child
,
parent
)
{
for
(
var
key
in
parent
)
{
if
(
__hasProp
.
call
(
parent
,
key
))
child
[
key
]
=
parent
[
key
];
}
function
ctor
()
{
this
.
constructor
=
child
;
}
ctor
.
prototype
=
parent
.
prototype
;
child
.
prototype
=
new
ctor
();
child
.
__super__
=
parent
.
prototype
;
return
child
;
}
;
hasProp
=
{}.
hasOwnProperty
;
TodoApp
=
(
function
(
_super
)
{
TodoApp
=
(
function
(
superClass
)
{
var
ENTER_KEY
;
var
ENTER_KEY
;
__extends
(
TodoApp
,
_super
);
extend
(
TodoApp
,
superClass
);
ENTER_KEY
=
13
;
ENTER_KEY
=
13
;
...
@@ -30,10 +30,10 @@
...
@@ -30,10 +30,10 @@
};
};
function
TodoApp
()
{
function
TodoApp
()
{
this
.
renderFooter
=
__
bind
(
this
.
renderFooter
,
this
);
this
.
renderFooter
=
bind
(
this
.
renderFooter
,
this
);
this
.
toggleElems
=
__
bind
(
this
.
toggleElems
,
this
);
this
.
toggleElems
=
bind
(
this
.
toggleElems
,
this
);
this
.
addAll
=
__
bind
(
this
.
addAll
,
this
);
this
.
addAll
=
bind
(
this
.
addAll
,
this
);
this
.
addNew
=
__
bind
(
this
.
addNew
,
this
);
this
.
addNew
=
bind
(
this
.
addNew
,
this
);
TodoApp
.
__super__
.
constructor
.
apply
(
this
,
arguments
);
TodoApp
.
__super__
.
constructor
.
apply
(
this
,
arguments
);
Todo
.
bind
(
'
create
'
,
this
.
addNew
);
Todo
.
bind
(
'
create
'
,
this
.
addNew
);
Todo
.
bind
(
'
refresh change
'
,
this
.
addAll
);
Todo
.
bind
(
'
refresh change
'
,
this
.
addAll
);
...
@@ -84,15 +84,15 @@
...
@@ -84,15 +84,15 @@
};
};
TodoApp
.
prototype
.
addAll
=
function
()
{
TodoApp
.
prototype
.
addAll
=
function
()
{
var
todo
,
_i
,
_len
,
_ref
,
_results
;
var
i
,
len
,
ref
,
results
,
todo
;
this
.
todos
.
empty
();
this
.
todos
.
empty
();
_
ref
=
this
.
getByFilter
();
ref
=
this
.
getByFilter
();
_
results
=
[];
results
=
[];
for
(
_i
=
0
,
_len
=
_ref
.
length
;
_i
<
_len
;
_
i
++
)
{
for
(
i
=
0
,
len
=
ref
.
length
;
i
<
len
;
i
++
)
{
todo
=
_ref
[
_
i
];
todo
=
ref
[
i
];
_
results
.
push
(
this
.
addNew
(
todo
));
results
.
push
(
this
.
addNew
(
todo
));
}
}
return
_
results
;
return
results
;
};
};
TodoApp
.
prototype
.
toggleAll
=
function
(
e
)
{
TodoApp
.
prototype
.
toggleAll
=
function
(
e
)
{
...
...
examples/spine/js/controllers/todos.js
View file @
d1198bb2
// Generated by CoffeeScript 1.
7
.1
// Generated by CoffeeScript 1.
9
.1
(
function
()
{
(
function
()
{
var
__
bind
=
function
(
fn
,
me
){
return
function
(){
return
fn
.
apply
(
me
,
arguments
);
};
},
var
bind
=
function
(
fn
,
me
){
return
function
(){
return
fn
.
apply
(
me
,
arguments
);
};
},
__hasProp
=
{}.
hasOwnProperty
,
extend
=
function
(
child
,
parent
)
{
for
(
var
key
in
parent
)
{
if
(
hasProp
.
call
(
parent
,
key
))
child
[
key
]
=
parent
[
key
];
}
function
ctor
()
{
this
.
constructor
=
child
;
}
ctor
.
prototype
=
parent
.
prototype
;
child
.
prototype
=
new
ctor
();
child
.
__super__
=
parent
.
prototype
;
return
child
;
}
,
__extends
=
function
(
child
,
parent
)
{
for
(
var
key
in
parent
)
{
if
(
__hasProp
.
call
(
parent
,
key
))
child
[
key
]
=
parent
[
key
];
}
function
ctor
()
{
this
.
constructor
=
child
;
}
ctor
.
prototype
=
parent
.
prototype
;
child
.
prototype
=
new
ctor
();
child
.
__super__
=
parent
.
prototype
;
return
child
;
}
;
hasProp
=
{}.
hasOwnProperty
;
window
.
Todos
=
(
function
(
_super
)
{
window
.
Todos
=
(
function
(
superClass
)
{
var
ENTER_KEY
,
ESCAPE_KEY
,
TPL
;
var
ENTER_KEY
,
ESCAPE_KEY
,
TPL
;
__extends
(
Todos
,
_super
);
extend
(
Todos
,
superClass
);
ENTER_KEY
=
13
;
ENTER_KEY
=
13
;
...
@@ -29,7 +29,7 @@
...
@@ -29,7 +29,7 @@
};
};
function
Todos
()
{
function
Todos
()
{
this
.
render
=
__
bind
(
this
.
render
,
this
);
this
.
render
=
bind
(
this
.
render
,
this
);
Todos
.
__super__
.
constructor
.
apply
(
this
,
arguments
);
Todos
.
__super__
.
constructor
.
apply
(
this
,
arguments
);
this
.
todo
.
bind
(
'
update
'
,
this
.
render
);
this
.
todo
.
bind
(
'
update
'
,
this
.
render
);
this
.
todo
.
bind
(
'
destroy
'
,
this
.
release
);
this
.
todo
.
bind
(
'
destroy
'
,
this
.
release
);
...
...
examples/spine/js/models/todo.js
View file @
d1198bb2
// Generated by CoffeeScript 1.
7
.1
// Generated by CoffeeScript 1.
9
.1
(
function
()
{
(
function
()
{
var
__hasProp
=
{}.
hasOwnProperty
,
var
extend
=
function
(
child
,
parent
)
{
for
(
var
key
in
parent
)
{
if
(
hasProp
.
call
(
parent
,
key
))
child
[
key
]
=
parent
[
key
];
}
function
ctor
()
{
this
.
constructor
=
child
;
}
ctor
.
prototype
=
parent
.
prototype
;
child
.
prototype
=
new
ctor
();
child
.
__super__
=
parent
.
prototype
;
return
child
;
}
,
__extends
=
function
(
child
,
parent
)
{
for
(
var
key
in
parent
)
{
if
(
__hasProp
.
call
(
parent
,
key
))
child
[
key
]
=
parent
[
key
];
}
function
ctor
()
{
this
.
constructor
=
child
;
}
ctor
.
prototype
=
parent
.
prototype
;
child
.
prototype
=
new
ctor
();
child
.
__super__
=
parent
.
prototype
;
return
child
;
}
;
hasProp
=
{}.
hasOwnProperty
;
window
.
Todo
=
(
function
(
_super
)
{
window
.
Todo
=
(
function
(
superClass
)
{
__extends
(
Todo
,
_super
);
extend
(
Todo
,
superClass
);
function
Todo
()
{
function
Todo
()
{
return
Todo
.
__super__
.
constructor
.
apply
(
this
,
arguments
);
return
Todo
.
__super__
.
constructor
.
apply
(
this
,
arguments
);
...
@@ -27,14 +27,14 @@
...
@@ -27,14 +27,14 @@
};
};
Todo
.
destroyCompleted
=
function
()
{
Todo
.
destroyCompleted
=
function
()
{
var
todo
,
_i
,
_len
,
_ref
,
_results
;
var
i
,
len
,
ref
,
results
,
todo
;
_
ref
=
this
.
completed
();
ref
=
this
.
completed
();
_
results
=
[];
results
=
[];
for
(
_i
=
0
,
_len
=
_ref
.
length
;
_i
<
_len
;
_
i
++
)
{
for
(
i
=
0
,
len
=
ref
.
length
;
i
<
len
;
i
++
)
{
todo
=
_ref
[
_
i
];
todo
=
ref
[
i
];
_
results
.
push
(
todo
.
destroy
());
results
.
push
(
todo
.
destroy
());
}
}
return
_
results
;
return
results
;
};
};
return
Todo
;
return
Todo
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment