Skip to content

Commit

Permalink
Add map to parser property of po.hash.
Browse files Browse the repository at this point in the history
  • Loading branch information
jasondavies committed Dec 9, 2010
1 parent 492999f commit 2113bcb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Hash.js
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ po.hash = function() {
lat = 90 - 1e-8, // allowable latitude range lat = 90 - 1e-8, // allowable latitude range
map; map;


var parser = function(s) { var parser = function(map, s) {
var args = s.split("/").map(Number); var args = s.split("/").map(Number);
if (args.length < 3 || args.some(isNaN)) if (args.length < 3 || args.some(isNaN))
move(); // replace bogus hash move(); // replace bogus hash
Expand Down Expand Up @@ -32,7 +32,7 @@ po.hash = function() {


function hashchange() { function hashchange() {
if (location.hash === s0) return; // ignore spurious hashchange events 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) { hash.map = function(x) {
Expand Down

0 comments on commit 2113bcb

Please sign in to comment.