Permalink
Browse files

IE....

  • Loading branch information...
Tom MacWright
Tom MacWright committed May 23, 2011
1 parent da137c6 commit a3963de33687210db7d1cc9901cfe46badc5d2af
Showing with 11 additions and 5 deletions.
  1. +5 −2 build/wax.mm.js
  2. +1 −1 build/wax.mm.min.js
  3. +5 −2 control/mm/hash.js
View
@@ -828,8 +828,11 @@ wax.hash = function(map, options) {
map: this,
parser: function(s) {
var args = s.split('/');
- for (var i = 0; i < args.length; i++) args[i] = Number(args);
- if (args.length < 3 || args.some(isNaN)) {
+ for (var i = 0; i < args.length; i++) {
+ if (isNaN(args[i])) return true;
+ args[i] = Number(args);
+ }
+ if (args.length < 3) {
return true; // replace bogus hash
} else if (args.length == 3) {
map.setCenterZoom(new com.modestmaps.Location(args[1], args[2]), args[0]);
Oops, something went wrong.

0 comments on commit a3963de

Please sign in to comment.