Comparing version 0.0.2 to 0.0.3
@@ -10,8 +10,3 @@ var util = require('util'), | ||
currentPath, | ||
isManualChange = false, | ||
changeHandler = function() { | ||
if (isManualChange) { | ||
isManualChange = false; | ||
return; | ||
} | ||
var newPath = self.getCurrentPath(); | ||
@@ -38,3 +33,2 @@ self.emit('change', newPath, currentPath); | ||
if (newPath !== win.location.pathname) { | ||
isManualChange = true; | ||
win.history.pushState(null, null, newPath); | ||
@@ -41,0 +35,0 @@ } |
@@ -7,3 +7,3 @@ { | ||
], | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"dependencies": { | ||
@@ -10,0 +10,0 @@ "call": "2.x.x" |
@@ -22,3 +22,3 @@ var assert = require('assert'), | ||
assert.throws(function() { | ||
pathStrategy = PathStrategyFactory.getPathStrategy('fnord', { _window: mockWindow }); | ||
var pathStrategy = PathStrategyFactory.getPathStrategy('fnord', { _window: mockWindow }); | ||
}); | ||
@@ -29,3 +29,3 @@ done(); | ||
it('should return an instance of HashPathStrategy', function(done) { | ||
pathStrategy = PathStrategyFactory.getPathStrategy('hash', { _window: mockWindow }); | ||
var pathStrategy = PathStrategyFactory.getPathStrategy('hash', { _window: mockWindow }); | ||
assert(pathStrategy instanceof HashPathStrategy); | ||
@@ -36,3 +36,3 @@ done(); | ||
it('should return an instance of HistoryPathStrategy', function(done) { | ||
pathStrategy = PathStrategyFactory.getPathStrategy('history', { _window: mockWindow }); | ||
var pathStrategy = PathStrategyFactory.getPathStrategy('history', { _window: mockWindow }); | ||
assert(pathStrategy instanceof HistoryPathStrategy); | ||
@@ -39,0 +39,0 @@ done(); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
26806
625