web: upgrade to react-router 0.13.2

This commit is contained in:
vzvu3k6k 2015-03-27 04:18:02 +09:00
parent 04f2467e84
commit d65a4b6100
4 changed files with 1756 additions and 1432 deletions

View File

@ -506,7 +506,6 @@ var Navigation = _.extend({}, ReactRouter.Navigation, {
q[i] = dict[i] || undefined; //falsey values shall be removed.
}
}
q._ = "_"; // workaround for https://github.com/rackt/react-router/pull/957
this.replaceWith(this.context.router.getCurrentPath(), this.context.router.getCurrentParams(), q);
},
replaceWith: function(routeNameOrPath, params, query) {
@ -520,8 +519,6 @@ var Navigation = _.extend({}, ReactRouter.Navigation, {
query = this.context.router.getCurrentQuery();
}
// FIXME: react-router is just broken,
// we hopefully just need to wait for the next release with https://github.com/rackt/react-router/pull/957.
this.context.router.replaceWith(routeNameOrPath, params, query);
}
});
@ -676,7 +673,7 @@ var LogMessage = React.createClass({displayName: "LogMessage",
}
return (
React.createElement("div", null,
indicator, " ", entry.message
indicator, " ", entry.message
)
);
},

File diff suppressed because it is too large Load Diff

View File

@ -20,7 +20,7 @@
"jquery": "",
"lodash": "",
"react": "^0.13.1",
"react-router": "^0.13.1"
"react-router": "^0.13.2"
},
"devDependencies": {
"browserify": "=8.0.1",

View File

@ -45,7 +45,6 @@ var Navigation = _.extend({}, ReactRouter.Navigation, {
q[i] = dict[i] || undefined; //falsey values shall be removed.
}
}
q._ = "_"; // workaround for https://github.com/rackt/react-router/pull/957
this.replaceWith(this.context.router.getCurrentPath(), this.context.router.getCurrentParams(), q);
},
replaceWith: function(routeNameOrPath, params, query) {
@ -59,8 +58,6 @@ var Navigation = _.extend({}, ReactRouter.Navigation, {
query = this.context.router.getCurrentQuery();
}
// FIXME: react-router is just broken,
// we hopefully just need to wait for the next release with https://github.com/rackt/react-router/pull/957.
this.context.router.replaceWith(routeNameOrPath, params, query);
}
});