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
fc92daa5
Commit
fc92daa5
authored
Jun 14, 2015
by
Arthur Verschaeve
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update react-backbone to react@0.13
parent
8c6b62e3
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
8607 additions
and
6067 deletions
+8607
-6067
examples/react-backbone/js/app.jsx
examples/react-backbone/js/app.jsx
+4
-4
examples/react-backbone/js/todoItem.jsx
examples/react-backbone/js/todoItem.jsx
+1
-1
examples/react-backbone/node_modules/react/dist/JSXTransformer.js
.../react-backbone/node_modules/react/dist/JSXTransformer.js
+2182
-1462
examples/react-backbone/node_modules/react/dist/react-with-addons.js
...act-backbone/node_modules/react/dist/react-with-addons.js
+6419
-4599
examples/react-backbone/package.json
examples/react-backbone/package.json
+1
-1
No files found.
examples/react-backbone/js/app.jsx
View file @
fc92daa5
...
@@ -90,17 +90,17 @@ var app = app || {};
...
@@ -90,17 +90,17 @@ var app = app || {};
return
;
return
;
}
}
var
val
=
this
.
refs
.
newField
.
getDOMNode
(
).
value
.
trim
();
var
val
=
React
.
findDOMNode
(
this
.
refs
.
newField
).
value
.
trim
();
if
(
val
)
{
if
(
val
)
{
this
.
props
.
todos
.
create
({
this
.
props
.
todos
.
create
({
title
:
val
,
title
:
val
,
completed
:
false
,
completed
:
false
,
order
:
this
.
props
.
todos
.
nextOrder
()
order
:
this
.
props
.
todos
.
nextOrder
()
});
});
this
.
refs
.
newField
.
getDOMNode
(
).
value
=
''
;
React
.
findDOMNode
(
this
.
refs
.
newField
).
value
=
''
;
}
}
return
false
;
event
.
preventDefault
()
;
},
},
toggleAll
:
function
(
event
)
{
toggleAll
:
function
(
event
)
{
...
@@ -212,7 +212,7 @@ var app = app || {};
...
@@ -212,7 +212,7 @@ var app = app || {};
}
}
});
});
React
.
render
Component
(
React
.
render
(
<
TodoApp
todos=
{
app
.
todos
}
/>,
<
TodoApp
todos=
{
app
.
todos
}
/>,
document
.
getElementById
(
'
todoapp
'
)
document
.
getElementById
(
'
todoapp
'
)
);
);
...
...
examples/react-backbone/js/todoItem.jsx
View file @
fc92daa5
...
@@ -36,7 +36,7 @@ var app = app || {};
...
@@ -36,7 +36,7 @@ var app = app || {};
// immediately manipulate the DOM as if the rendering's over. Put it as a
// immediately manipulate the DOM as if the rendering's over. Put it as a
// callback. Refer to app.jsx' `edit` method
// callback. Refer to app.jsx' `edit` method
this
.
props
.
onEdit
(
function
()
{
this
.
props
.
onEdit
(
function
()
{
var
node
=
this
.
refs
.
editField
.
getDOMNode
(
);
var
node
=
React
.
findDOMNode
(
this
.
refs
.
editField
);
node
.
focus
();
node
.
focus
();
node
.
setSelectionRange
(
node
.
value
.
length
,
node
.
value
.
length
);
node
.
setSelectionRange
(
node
.
value
.
length
,
node
.
value
.
length
);
}.
bind
(
this
));
}.
bind
(
this
));
...
...
examples/react-backbone/node_modules/react/dist/JSXTransformer.js
View file @
fc92daa5
This diff is collapsed.
Click to expand it.
examples/react-backbone/node_modules/react/dist/react-with-addons.js
View file @
fc92daa5
This diff is collapsed.
Click to expand it.
examples/react-backbone/package.json
View file @
fc92daa5
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
"backbone"
:
"^1.1.2"
,
"backbone"
:
"^1.1.2"
,
"backbone.localstorage"
:
"^1.1.7"
,
"backbone.localstorage"
:
"^1.1.7"
,
"jquery"
:
"^2.1.0"
,
"jquery"
:
"^2.1.0"
,
"react"
:
"^0.1
2.0
"
,
"react"
:
"^0.1
3.3
"
,
"todomvc-app-css"
:
"^1.0.0"
,
"todomvc-app-css"
:
"^1.0.0"
,
"todomvc-common"
:
"^1.0.1"
,
"todomvc-common"
:
"^1.0.1"
,
"underscore"
:
"^1.6.0"
"underscore"
:
"^1.6.0"
...
...
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