Permalink
Browse files

2.1.3

  • Loading branch information...
1 parent 75e2cd4 commit c4a7835ad67c16122c3f6333497e4e515ec84813 @tmcw tmcw committed Jun 10, 2011
Showing with 19 additions and 15 deletions.
  1. +4 −0 CHANGELOG.md
  2. +2 −2 control/lib/tooltip.js
  3. +2 −2 dist/wax.g.js
  4. +1 −1 dist/wax.g.min.js
  5. +2 −2 dist/wax.leaf.js
  6. +1 −1 dist/wax.leaf.min.js
  7. +2 −2 dist/wax.mm.js
  8. +1 −1 dist/wax.mm.min.js
  9. +2 −2 dist/wax.ol.js
  10. +1 −1 dist/wax.ol.min.js
  11. +1 −1 package.json
View
@@ -1,5 +1,9 @@
## Changelog
+### 2.1.3
+
+* Fixing a touch javascript error.
+
### 2.1.1
* Overeager touch-events handling fixed.
View
@@ -28,7 +28,7 @@ wax.tooltip.prototype.hideTooltip = function(el) {
if (!el) return;
var event;
var remove = function() {
- this.parentNode.removeChild(this);
+ if (this.parentNode) this.parentNode.removeChild(this);
};
if (el.style['-webkit-transition'] !== undefined && this.animationOut) {
event = 'webkitTransitionEnd';
@@ -40,7 +40,7 @@ wax.tooltip.prototype.hideTooltip = function(el) {
el.addEventListener('transitionend', remove, false);
el.className += ' ' + this.animationOut;
} else {
- el.parentNode.removeChild(el);
+ if (el.parentNode) el.parentNode.removeChild(el);
}
};
View
@@ -499,7 +499,7 @@ wax.tooltip.prototype.hideTooltip = function(el) {
if (!el) return;
var event;
var remove = function() {
- this.parentNode.removeChild(this);
+ if (this.parentNode) this.parentNode.removeChild(this);
};
if (el.style['-webkit-transition'] !== undefined && this.animationOut) {
event = 'webkitTransitionEnd';
@@ -511,7 +511,7 @@ wax.tooltip.prototype.hideTooltip = function(el) {
el.addEventListener('transitionend', remove, false);
el.className += ' ' + this.animationOut;
} else {
- el.parentNode.removeChild(el);
+ if (el.parentNode) el.parentNode.removeChild(el);
}
};
View

Large diffs are not rendered by default.

Oops, something went wrong.
View
@@ -499,7 +499,7 @@ wax.tooltip.prototype.hideTooltip = function(el) {
if (!el) return;
var event;
var remove = function() {
- this.parentNode.removeChild(this);
+ if (this.parentNode) this.parentNode.removeChild(this);
};
if (el.style['-webkit-transition'] !== undefined && this.animationOut) {
event = 'webkitTransitionEnd';
@@ -511,7 +511,7 @@ wax.tooltip.prototype.hideTooltip = function(el) {
el.addEventListener('transitionend', remove, false);
el.className += ' ' + this.animationOut;
} else {
- el.parentNode.removeChild(el);
+ if (el.parentNode) el.parentNode.removeChild(el);
}
};
View

Large diffs are not rendered by default.

Oops, something went wrong.
View
@@ -499,7 +499,7 @@ wax.tooltip.prototype.hideTooltip = function(el) {
if (!el) return;
var event;
var remove = function() {
- this.parentNode.removeChild(this);
+ if (this.parentNode) this.parentNode.removeChild(this);
};
if (el.style['-webkit-transition'] !== undefined && this.animationOut) {
event = 'webkitTransitionEnd';
@@ -511,7 +511,7 @@ wax.tooltip.prototype.hideTooltip = function(el) {
el.addEventListener('transitionend', remove, false);
el.className += ' ' + this.animationOut;
} else {
- el.parentNode.removeChild(el);
+ if (el.parentNode) el.parentNode.removeChild(el);
}
};
View

Large diffs are not rendered by default.

Oops, something went wrong.
View
@@ -499,7 +499,7 @@ wax.tooltip.prototype.hideTooltip = function(el) {
if (!el) return;
var event;
var remove = function() {
- this.parentNode.removeChild(this);
+ if (this.parentNode) this.parentNode.removeChild(this);
};
if (el.style['-webkit-transition'] !== undefined && this.animationOut) {
event = 'webkitTransitionEnd';
@@ -511,7 +511,7 @@ wax.tooltip.prototype.hideTooltip = function(el) {
el.addEventListener('transitionend', remove, false);
el.className += ' ' + this.animationOut;
} else {
- el.parentNode.removeChild(el);
+ if (el.parentNode) el.parentNode.removeChild(el);
}
};
View

Large diffs are not rendered by default.

Oops, something went wrong.
View
@@ -1,6 +1,6 @@
{
"name": "wax",
- "version": "2.1.1",
+ "version": "2.1.3",
"description": "Tools for improving web maps.",
"author": {
"name": "MapBox",

0 comments on commit c4a7835

Please sign in to comment.