File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change
1
+ var mergeProperties = require ( '../helpers/mergeProperties' ) ;
2
+
1
3
var _activeRoutes = [ ] ;
2
4
var _activeParams = { } ;
3
5
var _activeQuery = { } ;
@@ -69,24 +71,24 @@ var ActiveStore = {
69
71
} ,
70
72
71
73
/**
72
- * Returns an array of the currently active routes.
74
+ * Returns a read-only array of the currently active routes.
73
75
*/
74
76
getActiveRoutes : function ( ) {
75
- return _activeRoutes ;
77
+ return _activeRoutes . slice ( 0 ) ;
76
78
} ,
77
79
78
80
/**
79
- * Returns a hash of the currently active params.
81
+ * Returns a read-only hash of the currently active params.
80
82
*/
81
83
getActiveParams : function ( ) {
82
- return _activeParams ;
84
+ return mergeProperties ( { } , _activeParams ) ;
83
85
} ,
84
86
85
87
/**
86
- * Returns a hash of the currently active query parameters.
88
+ * Returns a read-only hash of the currently active query parameters.
87
89
*/
88
90
getActiveQuery : function ( ) {
89
- return _activeQuery ;
91
+ return mergeProperties ( { } , _activeQuery ) ;
90
92
} ,
91
93
92
94
/**
You can’t perform that action at this time.
0 commit comments