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
Sven Franck
todomvc
Commits
bfb97855
Commit
bfb97855
authored
Dec 29, 2012
by
Peter Michaux
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ensure source files pass JSHint
parent
2a837ab2
Changes
11
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
32 additions
and
3 deletions
+32
-3
labs/architecture-examples/maria/src/js/bootstrap.js
labs/architecture-examples/maria/src/js/bootstrap.js
+3
-0
labs/architecture-examples/maria/src/js/controllers/TodoController.js
...cture-examples/maria/src/js/controllers/TodoController.js
+3
-0
labs/architecture-examples/maria/src/js/controllers/TodosController.js
...ture-examples/maria/src/js/controllers/TodosController.js
+3
-0
labs/architecture-examples/maria/src/js/models/TodoModel.js
labs/architecture-examples/maria/src/js/models/TodoModel.js
+3
-0
labs/architecture-examples/maria/src/js/models/TodosModel.js
labs/architecture-examples/maria/src/js/models/TodosModel.js
+4
-2
labs/architecture-examples/maria/src/js/namespace.js
labs/architecture-examples/maria/src/js/namespace.js
+2
-0
labs/architecture-examples/maria/src/js/templates/TodoTemplate.js
...hitecture-examples/maria/src/js/templates/TodoTemplate.js
+2
-0
labs/architecture-examples/maria/src/js/templates/TodosTemplate.js
...itecture-examples/maria/src/js/templates/TodosTemplate.js
+2
-0
labs/architecture-examples/maria/src/js/util.js
labs/architecture-examples/maria/src/js/util.js
+4
-1
labs/architecture-examples/maria/src/js/views/TodoView.js
labs/architecture-examples/maria/src/js/views/TodoView.js
+3
-0
labs/architecture-examples/maria/src/js/views/TodosView.js
labs/architecture-examples/maria/src/js/views/TodosView.js
+3
-0
No files found.
labs/architecture-examples/maria/src/js/bootstrap.js
View file @
bfb97855
/*jshint strict: false */
/*global maria, Router, checkit */
maria
.
on
(
window
,
'
load
'
,
function
()
{
var
loading
=
document
.
getElementById
(
'
loading
'
);
loading
.
parentNode
.
removeChild
(
loading
);
...
...
labs/architecture-examples/maria/src/js/controllers/TodoController.js
View file @
bfb97855
/*jshint strict: false */
/*global maria, checkit */
maria
.
Controller
.
subclass
(
checkit
,
'
TodoController
'
,
{
properties
:
{
onClickDestroy
:
function
()
{
...
...
labs/architecture-examples/maria/src/js/controllers/TodosController.js
View file @
bfb97855
/*jshint strict: false */
/*global maria, checkit */
maria
.
Controller
.
subclass
(
checkit
,
'
TodosAppController
'
,
{
properties
:
{
onKeyupNewTodo
:
function
(
evt
)
{
...
...
labs/architecture-examples/maria/src/js/models/TodoModel.js
View file @
bfb97855
/*jshint strict: false */
/*global maria, checkit */
maria
.
Model
.
subclass
(
checkit
,
'
TodoModel
'
,
{
properties
:
{
_title
:
''
,
...
...
labs/architecture-examples/maria/src/js/models/TodosModel.js
View file @
bfb97855
/*jshint strict: false */
/*global maria, checkit */
maria
.
SetModel
.
subclass
(
checkit
,
'
TodosModel
'
,
{
properties
:
{
_mode
:
'
all
'
,
...
...
@@ -29,8 +32,7 @@ maria.SetModel.subclass(checkit, 'TodosModel', {
});
},
isAllCompleted
:
function
()
{
return
(
this
.
length
>
0
)
&&
(
this
.
getCompleted
().
length
===
this
.
length
);
return
(
this
.
length
>
0
)
&&
(
this
.
getCompleted
().
length
===
this
.
length
);
},
markAllCompleted
:
function
()
{
this
.
forEach
(
function
(
todo
)
{
...
...
labs/architecture-examples/maria/src/js/namespace.js
View file @
bfb97855
/*jshint unused:false */
var
checkit
=
{};
labs/architecture-examples/maria/src/js/templates/TodoTemplate.js
View file @
bfb97855
/*global checkit */
// In a full development environment this template would be expressed
// in a file containing only HTML and be compiled to the following as part
// of the server/build functionality.
...
...
labs/architecture-examples/maria/src/js/templates/TodosTemplate.js
View file @
bfb97855
/*global checkit */
// In a full development environment this template would be expressed
// in a file containing only HTML and be compiled to the following as part
// of the server/build functionality.
...
...
labs/architecture-examples/maria/src/js/util.js
View file @
bfb97855
/*jshint strict: false */
/*global checkit */
checkit
.
isBlank
=
function
(
str
)
{
return
/^
\s
*$/
.
test
(
str
);
return
(
/^
\s
*$/
)
.
test
(
str
);
};
checkit
.
escapeHTML
=
function
(
str
)
{
...
...
labs/architecture-examples/maria/src/js/views/TodoView.js
View file @
bfb97855
/*jshint strict: false */
/*global maria, aristocrat, checkit */
maria
.
ElementView
.
subclass
(
checkit
,
'
TodoView
'
,
{
uiActions
:
{
'
click .destroy
'
:
'
onClickDestroy
'
,
...
...
labs/architecture-examples/maria/src/js/views/TodosView.js
View file @
bfb97855
/*jshint strict: false */
/*global maria, aristocrat, checkit */
maria
.
SetView
.
subclass
(
checkit
,
'
TodosAppView
'
,
{
uiActions
:
{
'
keyup #new-todo
'
:
'
onKeyupNewTodo
'
,
...
...
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