2015-04-21 19:38:17 +02:00
|
|
|
/**
|
|
|
|
* Actions that modify the URL.
|
|
|
|
*/
|
2015-04-29 11:02:32 +02:00
|
|
|
'use strict';
|
|
|
|
|
2015-04-21 19:38:17 +02:00
|
|
|
var LocationActions = {
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Indicates a new location is being pushed to the history stack.
|
|
|
|
*/
|
2015-04-29 11:02:32 +02:00
|
|
|
PUSH: 'push',
|
2015-04-21 19:38:17 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Indicates the current location should be replaced.
|
|
|
|
*/
|
2015-04-29 11:02:32 +02:00
|
|
|
REPLACE: 'replace',
|
2015-04-21 19:38:17 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Indicates the most recent entry should be removed from the history stack.
|
|
|
|
*/
|
2015-04-29 11:02:32 +02:00
|
|
|
POP: 'pop'
|
2015-04-21 19:38:17 +02:00
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
module.exports = LocationActions;
|