Permalink
Browse files

Fix wax.mm.interaction in IE7. Fixes #148

This bug was due to the fact that IE doesn't support
e.target, so calling className off of it was invalid. A quick
scan of the source doesn't show any other references to target,
so we should be fine after this patch.

This will constitute a 4.1.4
  • Loading branch information...
1 parent a83517c commit a25a0813ddfc1e8702c4098a2aad1977d8b7e3f5 @tmcw tmcw committed Jan 6, 2012
Showing with 15 additions and 13 deletions.
  1. +2 −1 control/mm/interaction.js
  2. +1 −1 dist/wax.g.js
  3. +1 −1 dist/wax.g.min.js
  4. +1 −1 dist/wax.leaf.js
  5. +1 −1 dist/wax.leaf.min.js
  6. +3 −2 dist/wax.mm.js
  7. +2 −2 dist/wax.mm.min.js
  8. +1 −1 dist/wax.ol.js
  9. +1 −1 dist/wax.ol.min.js
  10. +1 −1 dist/wax.p.js
  11. +1 −1 dist/wax.p.min.js
@@ -98,7 +98,8 @@ wax.mm.interaction = function(map, tilejson, options) {
// If the user is actually dragging the map, exit early
// to avoid performance hits.
if (_downLock) return;
- if (e.target.className !== 'map-tile-loaded') return;
+ var t = e.target || e.srcElement;
+ if (t.className !== 'map-tile-loaded') return;
var pos = eventoffset(e),
tile = getTile(pos),
View
@@ -1,4 +1,4 @@
-/* wax - 4.1.3 - 1.0.4-477-gba3b176 */
+/* wax - 4.1.3 - 1.0.4-478-ga83517c */
/*!
View

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
View
@@ -1,4 +1,4 @@
-/* wax - 4.1.3 - 1.0.4-477-gba3b176 */
+/* wax - 4.1.3 - 1.0.4-478-ga83517c */
/*!
View

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
View
@@ -1,4 +1,4 @@
-/* wax - 4.1.3 - 1.0.4-477-gba3b176 */
+/* wax - 4.1.3 - 1.0.4-478-ga83517c */
/*!
@@ -2743,7 +2743,8 @@ wax.mm.interaction = function(map, tilejson, options) {
// If the user is actually dragging the map, exit early
// to avoid performance hits.
if (_downLock) return;
- if (e.target.className !== 'map-tile-loaded') return;
+ var t = e.target || e.srcElement;
+ if (t.className !== 'map-tile-loaded') return;
var pos = eventoffset(e),
tile = getTile(pos),
View

Large diffs are not rendered by default.

Oops, something went wrong.
View
@@ -1,4 +1,4 @@
-/* wax - 4.1.3 - 1.0.4-477-gba3b176 */
+/* wax - 4.1.3 - 1.0.4-478-ga83517c */
/*!
View

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
View
@@ -1,4 +1,4 @@
-/* wax - 4.1.3 - 1.0.4-477-gba3b176 */
+/* wax - 4.1.3 - 1.0.4-478-ga83517c */
/*!
View

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

0 comments on commit a25a081

Please sign in to comment.