fix use assign module instead of Object.assign

Object.assign not available in most browser yet...
This commit is contained in:
Berkeley Martinez
2015-07-04 11:48:55 -07:00
parent c664796165
commit 43d817d060

View File

@ -1,4 +1,5 @@
import Rx from 'rx';
import assign from 'object.assign';
import { Router } from 'react-router';
import App from './App.jsx';
@ -6,7 +7,7 @@ import childRoutes from './routes';
const router$ = Rx.Observable.fromNodeCallback(Router.run, Router);
const routes = Object.assign({ components: App }, childRoutes);
const routes = assign({ components: App }, childRoutes);
export default function app$(location) {
return router$(routes, location);