Commit fc92daa5 authored by Arthur Verschaeve's avatar Arthur Verschaeve

Update react-backbone to react@0.13

parent 8c6b62e3
......@@ -90,17 +90,17 @@ var app = app || {};
return;
}
var val = this.refs.newField.getDOMNode().value.trim();
var val = React.findDOMNode(this.refs.newField).value.trim();
if (val) {
this.props.todos.create({
title: val,
completed: false,
order: this.props.todos.nextOrder()
});
this.refs.newField.getDOMNode().value = '';
React.findDOMNode(this.refs.newField).value = '';
}
return false;
event.preventDefault();
},
toggleAll: function (event) {
......@@ -212,7 +212,7 @@ var app = app || {};
}
});
React.renderComponent(
React.render(
<TodoApp todos={app.todos} />,
document.getElementById('todoapp')
);
......
......@@ -36,7 +36,7 @@ var app = app || {};
// immediately manipulate the DOM as if the rendering's over. Put it as a
// callback. Refer to app.jsx' `edit` method
this.props.onEdit(function () {
var node = this.refs.editField.getDOMNode();
var node = React.findDOMNode(this.refs.editField);
node.focus();
node.setSelectionRange(node.value.length, node.value.length);
}.bind(this));
......
......@@ -4,7 +4,7 @@
"backbone": "^1.1.2",
"backbone.localstorage": "^1.1.7",
"jquery": "^2.1.0",
"react": "^0.12.0",
"react": "^0.13.3",
"todomvc-app-css": "^1.0.0",
"todomvc-common": "^1.0.1",
"underscore": "^1.6.0"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment