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
c5b1781e
Commit
c5b1781e
authored
Mar 20, 2013
by
Pascal Hartig
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Backbone: Updated to 1.0
parent
b542c361
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
600 additions
and
507 deletions
+600
-507
architecture-examples/backbone/component.json
architecture-examples/backbone/component.json
+1
-1
architecture-examples/backbone/components/backbone/backbone.js
...tecture-examples/backbone/components/backbone/backbone.js
+578
-505
architecture-examples/backbone/components/todomvc-common/base.js
...cture-examples/backbone/components/todomvc-common/base.js
+16
-0
architecture-examples/backbone/js/routers/router.js
architecture-examples/backbone/js/routers/router.js
+1
-1
changelog.md
changelog.md
+4
-0
No files found.
architecture-examples/backbone/component.json
View file @
c5b1781e
...
...
@@ -2,7 +2,7 @@
"name"
:
"todomvc-backbone"
,
"version"
:
"0.0.0"
,
"dependencies"
:
{
"backbone"
:
"~
0.9.1
0"
,
"backbone"
:
"~
1.0.
0"
,
"underscore"
:
"~1.4.4"
,
"jquery"
:
"~1.9.1"
,
"todomvc-common"
:
"~0.1.0"
,
...
...
architecture-examples/backbone/components/backbone/backbone.js
View file @
c5b1781e
This diff is collapsed.
Click to expand it.
architecture-examples/backbone/components/todomvc-common/base.js
View file @
c5b1781e
...
...
@@ -4,4 +4,20 @@
if
(
location
.
hostname
===
'
todomvc.com
'
)
{
var
_gaq
=
[[
'
_setAccount
'
,
'
UA-31081062-1
'
],[
'
_trackPageview
'
]];(
function
(
d
,
t
){
var
g
=
d
.
createElement
(
t
),
s
=
d
.
getElementsByTagName
(
t
)[
0
];
g
.
src
=
'
//www.google-analytics.com/ga.js
'
;
s
.
parentNode
.
insertBefore
(
g
,
s
)}(
document
,
'
script
'
));
}
function
appendSourceLink
()
{
var
sourceLink
=
document
.
createElement
(
'
a
'
);
var
paragraph
=
document
.
createElement
(
'
p
'
);
var
footer
=
document
.
getElementById
(
'
info
'
);
var
urlBase
=
'
https://github.com/addyosmani/todomvc/tree/gh-pages
'
;
if
(
footer
)
{
sourceLink
.
href
=
urlBase
+
location
.
pathname
;
sourceLink
.
appendChild
(
document
.
createTextNode
(
'
Check out the source
'
));
paragraph
.
appendChild
(
sourceLink
);
footer
.
appendChild
(
paragraph
);
}
}
appendSourceLink
();
})();
architecture-examples/backbone/js/routers/router.js
View file @
c5b1781e
...
...
@@ -13,7 +13,7 @@ var app = app || {};
setFilter
:
function
(
param
)
{
// Set the current filter to be used
app
.
TodoFilter
=
param
.
trim
()
||
''
;
app
.
TodoFilter
=
param
||
''
;
// Trigger a collection filter event, causing hiding/unhiding
// of Todo view items
...
...
changelog.md
View file @
c5b1781e
...
...
@@ -6,6 +6,10 @@
-
Flight
-
DeftJS + ExtJS
-
Aria Templates
-
Updates since 1.1:
-
Backbone 1.0
-
The GWT example implemented routing
## 1.1 - 2013-02-14
...
...
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