Skip to content

Commit

Permalink
More IE.
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom MacWright committed May 23, 2011
1 parent 0ec599b commit 1dd4077
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
8 changes: 4 additions & 4 deletions build/wax.mm.js
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -751,7 +751,7 @@ wax.fullscreen = function(map, opts) {
this.a.href = '#fullscreen'; this.a.href = '#fullscreen';
this.a.innerHTML = 'fullscreen'; this.a.innerHTML = 'fullscreen';
map.parent.appendChild(this.a); map.parent.appendChild(this.a);
this.a.addEventListener('click', this.click(map), false); com.modestmaps.addEvent('click', this.click(map));
return this; return this;
}, },


Expand Down Expand Up @@ -807,7 +807,7 @@ var throttle = function(func, wait) {
// implementation will be prefered. // implementation will be prefered.
var locationHash = { var locationHash = {
stateChange: function(callback) { stateChange: function(callback) {
window.addEventListener('hashchange', function() { com.modestmaps.addEvent(window, 'hashchange', function() {
callback(location.hash); callback(location.hash);
}, false); }, false);
}, },
Expand Down Expand Up @@ -1310,7 +1310,7 @@ wax.zoomer = function(map) {
zoomin.innerHTML = '+'; zoomin.innerHTML = '+';
zoomin.href = '#'; zoomin.href = '#';
zoomin.className = 'zoomer zoomin'; zoomin.className = 'zoomer zoomin';
zoomin.addEventListener('click', function(e) { com.modestmaps.addEvent(zoomin, 'click', function(e) {
com.modestmaps.cancelEvent(e); com.modestmaps.cancelEvent(e);
map.zoomIn(); map.zoomIn();
}, false); }, false);
Expand All @@ -1320,7 +1320,7 @@ wax.zoomer = function(map) {
zoomout.innerHTML = '-'; zoomout.innerHTML = '-';
zoomout.href = '#'; zoomout.href = '#';
zoomout.className = 'zoomer zoomout'; zoomout.className = 'zoomer zoomout';
zoomout.addEventListener('click', function(e) { com.modestmaps.addEvent(zoomout, 'click', function(e) {
com.modestmaps.cancelEvent(e); com.modestmaps.cancelEvent(e);
map.zoomOut(); map.zoomOut();
}, false); }, false);
Expand Down
2 changes: 1 addition & 1 deletion build/wax.mm.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion control/mm/fullscreen.js
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ wax.fullscreen = function(map, opts) {
this.a.href = '#fullscreen'; this.a.href = '#fullscreen';
this.a.innerHTML = 'fullscreen'; this.a.innerHTML = 'fullscreen';
map.parent.appendChild(this.a); map.parent.appendChild(this.a);
this.a.addEventListener('click', this.click(map), false); com.modestmaps.addEvent('click', this.click(map));
return this; return this;
}, },


Expand Down
2 changes: 1 addition & 1 deletion control/mm/hash.js
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ var throttle = function(func, wait) {
// implementation will be prefered. // implementation will be prefered.
var locationHash = { var locationHash = {
stateChange: function(callback) { stateChange: function(callback) {
window.addEventListener('hashchange', function() { com.modestmaps.addEvent(window, 'hashchange', function() {
callback(location.hash); callback(location.hash);
}, false); }, false);
}, },
Expand Down
4 changes: 2 additions & 2 deletions control/mm/zoomer.js
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ wax.zoomer = function(map) {
zoomin.innerHTML = '+'; zoomin.innerHTML = '+';
zoomin.href = '#'; zoomin.href = '#';
zoomin.className = 'zoomer zoomin'; zoomin.className = 'zoomer zoomin';
zoomin.addEventListener('click', function(e) { com.modestmaps.addEvent(zoomin, 'click', function(e) {
com.modestmaps.cancelEvent(e); com.modestmaps.cancelEvent(e);
map.zoomIn(); map.zoomIn();
}, false); }, false);
Expand All @@ -22,7 +22,7 @@ wax.zoomer = function(map) {
zoomout.innerHTML = '-'; zoomout.innerHTML = '-';
zoomout.href = '#'; zoomout.href = '#';
zoomout.className = 'zoomer zoomout'; zoomout.className = 'zoomer zoomout';
zoomout.addEventListener('click', function(e) { com.modestmaps.addEvent(zoomout, 'click', function(e) {
com.modestmaps.cancelEvent(e); com.modestmaps.cancelEvent(e);
map.zoomOut(); map.zoomOut();
}, false); }, false);
Expand Down

0 comments on commit 1dd4077

Please sign in to comment.