made router available as singleton

This commit is contained in:
Edin Dazdarevic
2015-01-26 20:22:43 +01:00
parent 0abbdcec1f
commit 8d885694cf
4 changed files with 21 additions and 13 deletions

View File

@@ -22,8 +22,8 @@ var SingleItem = React.createClass({
itemClick: function(e) {
// no need for this to go through ItemActions
//ItemActions.selectItem(this.props.item);
this.transitionTo('/artikal/' + this.props.item.get('id') +'/' + this.props.item.get('name'));
ItemActions.selectItem(this.props.item);
//this.transitionTo('/artikal/' + this.props.item.get('id') +'/' + this.props.item.get('name'));
}
});