Skip to content

Commit

Permalink
Use History
Browse files Browse the repository at this point in the history
  • Loading branch information
mjackson committed Dec 4, 2014
1 parent 457d944 commit 5d0cd2a
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions modules/locations/RefreshLocation.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
var HistoryLocation = require('./HistoryLocation');
var History = require('../utils/History');
var Path = require('../utils/Path');

/**
Expand All @@ -16,11 +17,7 @@ var RefreshLocation = {
window.location.replace(Path.encode(path));
},

pop: function () {
// History will always have length 1 when using full
// page refreshes, so use window.history directly.
window.history.back();
},
pop: History.back,

getCurrentPath: HistoryLocation.getCurrentPath,

Expand Down

0 comments on commit 5d0cd2a

Please sign in to comment.