File tree Expand file tree Collapse file tree 3 files changed +1
-33
lines changed Expand file tree Collapse file tree 3 files changed +1
-33
lines changed Original file line number Diff line number Diff line change 1
1
var React = require ( 'react' ) ;
2
2
var ActiveState = require ( '../mixins/ActiveState' ) ;
3
- var ActiveStore = require ( '../stores/ActiveStore' ) ;
4
- var mergeProperties = require ( '../helpers/mergeProperties' ) ;
5
3
var withoutProperties = require ( '../helpers/withoutProperties' ) ;
6
4
var transitionTo = require ( '../helpers/transitionTo' ) ;
7
5
var makeHref = require ( '../helpers/makeHref' ) ;
@@ -68,8 +66,7 @@ var Link = React.createClass({
68
66
* Returns a hash of URL parameters to use in this <Link>'s path.
69
67
*/
70
68
getParams : function ( ) {
71
- // Links may omit active params. See #89
72
- return mergeProperties ( ActiveStore . getActiveParams ( ) , Link . getUnreservedProps ( this . props ) ) ;
69
+ return Link . getUnreservedProps ( this . props ) ;
73
70
} ,
74
71
75
72
/**
Original file line number Diff line number Diff line change 1
- var mergeProperties = require ( '../helpers/mergeProperties' ) ;
2
-
3
1
var _activeRoutes = [ ] ;
4
2
var _activeParams = { } ;
5
3
var _activeQuery = { } ;
@@ -70,27 +68,6 @@ var ActiveStore = {
70
68
notifyChange ( ) ;
71
69
} ,
72
70
73
- /**
74
- * Returns a read-only array of the currently active routes.
75
- */
76
- getActiveRoutes : function ( ) {
77
- return _activeRoutes . slice ( 0 ) ;
78
- } ,
79
-
80
- /**
81
- * Returns a read-only hash of the currently active params.
82
- */
83
- getActiveParams : function ( ) {
84
- return mergeProperties ( { } , _activeParams ) ;
85
- } ,
86
-
87
- /**
88
- * Returns a read-only hash of the currently active query parameters.
89
- */
90
- getActiveQuery : function ( ) {
91
- return mergeProperties ( { } , _activeQuery ) ;
92
- } ,
93
-
94
71
/**
95
72
* Returns true if the route with the given name, URL parameters, and query
96
73
* are all currently active.
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments