added migrations for instant delivery

This commit is contained in:
Senad Uka
2015-07-26 19:10:16 +02:00
parent af6864954a
commit 68b25bf491
374 changed files with 135456 additions and 6 deletions

View File

@@ -0,0 +1,31 @@
'use strict';
var HistoryLocation = require('./HistoryLocation');
var History = require('../History');
/**
* A Location that uses full page refreshes. This is used as
* the fallback for HistoryLocation in browsers that do not
* support the HTML5 history API.
*/
var RefreshLocation = {
push: function push(path) {
window.location = path;
},
replace: function replace(path) {
window.location.replace(path);
},
pop: History.back,
getCurrentPath: HistoryLocation.getCurrentPath,
toString: function toString() {
return '<RefreshLocation>';
}
};
module.exports = RefreshLocation;