Skip to content
Browse files

Add `map` to `parser` property of `po.hash`.

  • Loading branch information...
1 parent 492999f commit 2113bcbd1df4bd8dc73349372a392db2a1ead2fa @jasondavies jasondavies committed Dec 9, 2010
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/Hash.js
View
4 src/Hash.js
@@ -4,7 +4,7 @@ po.hash = function() {
lat = 90 - 1e-8, // allowable latitude range
map;
- var parser = function(s) {
+ var parser = function(map, s) {
var args = s.split("/").map(Number);
if (args.length < 3 || args.some(isNaN))
move(); // replace bogus hash
@@ -32,7 +32,7 @@ po.hash = function() {
function hashchange() {
if (location.hash === s0) return; // ignore spurious hashchange events
- parser((s0 = location.hash).substring(1));
+ parser(map, (s0 = location.hash).substring(1));
}
hash.map = function(x) {

0 comments on commit 2113bcb

Please sign in to comment.
Something went wrong with that request. Please try again.