25 lines
410 B
JavaScript
25 lines
410 B
JavaScript
/**
|
|
* Actions that modify the URL.
|
|
*/
|
|
'use strict';
|
|
|
|
var LocationActions = {
|
|
|
|
/**
|
|
* Indicates a new location is being pushed to the history stack.
|
|
*/
|
|
PUSH: 'push',
|
|
|
|
/**
|
|
* Indicates the current location should be replaced.
|
|
*/
|
|
REPLACE: 'replace',
|
|
|
|
/**
|
|
* Indicates the most recent entry should be removed from the history stack.
|
|
*/
|
|
POP: 'pop'
|
|
|
|
};
|
|
|
|
module.exports = LocationActions; |