1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-12-22 19:07:54 +01:00

Bump react to 0.12. Closes #37.

This commit is contained in:
Jari Bakken 2014-10-30 15:49:04 +01:00 committed by Ivar Conradi Østhus
parent 06b450da7b
commit 3c4427c54f
2 changed files with 4 additions and 5 deletions

View File

@ -10,8 +10,8 @@
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css">
<link rel="stylesheet" href="css/unleash.css">
<script src="//cdnjs.cloudflare.com/ajax/libs/react/0.11.2/react.js"></script>
<script src="//fb.me/JSXTransformer-0.11.2.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/react/0.12.0/react.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/react/0.12.0/JSXTransformer.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/reqwest/1.1.4/reqwest.js"></script>
</head>
<body>

View File

@ -1,4 +1,3 @@
/** @jsx React.DOM */
/* jshint quotmark:false */
// Unleash
@ -281,7 +280,7 @@ var Unleash = React.createClass({
contentType: 'application/json',
data: JSON.stringify(feature)
}).then(function(r) {
console.log(r);
console.log(r.statusText);
}.bind(this), this.handleError);
},
@ -328,7 +327,7 @@ var Unleash = React.createClass({
});
React.renderComponent(
React.render(
<Unleash pollInterval={5000} />,
document.getElementById('content')
);