Commit 7b67a148 by Tomas Alabes

IE 11 parentElement fix

parent b5bca4b8
...@@ -908,8 +908,15 @@ window.Raphael && window.Raphael.svg && function(R) { ...@@ -908,8 +908,15 @@ window.Raphael && window.Raphael.svg && function(R) {
var hide = true; var hide = true;
} }
var canvasHidden = false, var canvasHidden = false,
containerStyle;
if (this.paper.canvas.parentElement) {
containerStyle = this.paper.canvas.parentElement.style; containerStyle = this.paper.canvas.parentElement.style;
if(containerStyle.display == "none"){ } //IE10+ can't find parentElement
else if (this.paper.canvas.parentNode) {
containerStyle = this.paper.canvas.parentNode.style;
}
if(containerStyle && containerStyle.display == "none") {
canvasHidden = true; canvasHidden = true;
containerStyle.display = ""; containerStyle.display = "";
} }
......
Subproject commit eef80ed8d188423c2272746fb8ae5cc8dad84cb1 Subproject commit 42374a7804189a8e6dcc30675842888a8ce6e741
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -376,7 +376,7 @@ ...@@ -376,7 +376,7 @@
return "You are running Eve " + version; return "You are running Eve " + version;
}; };
(typeof module != "undefined" && module.exports) ? (module.exports = eve) : (typeof define != "undefined" ? (define("eve", [], function() { return eve; })) : (glob.eve = eve)); (typeof module != "undefined" && module.exports) ? (module.exports = eve) : (typeof define != "undefined" ? (define("eve", [], function() { return eve; })) : (glob.eve = eve));
})(this); })(window || this);
// ┌─────────────────────────────────────────────────────────────────────┐ \\ // ┌─────────────────────────────────────────────────────────────────────┐ \\
// │ "Raphaël 2.1.0" - JavaScript Vector Library │ \\ // │ "Raphaël 2.1.0" - JavaScript Vector Library │ \\
// ├─────────────────────────────────────────────────────────────────────┤ \\ // ├─────────────────────────────────────────────────────────────────────┤ \\
...@@ -6708,8 +6708,15 @@ ...@@ -6708,8 +6708,15 @@
var hide = true; var hide = true;
} }
var canvasHidden = false, var canvasHidden = false,
containerStyle;
if (this.paper.canvas.parentElement) {
containerStyle = this.paper.canvas.parentElement.style; containerStyle = this.paper.canvas.parentElement.style;
if(containerStyle.display == "none"){ } //IE10+ can't find parentElement
else if (this.paper.canvas.parentNode) {
containerStyle = this.paper.canvas.parentNode.style;
}
if(containerStyle && containerStyle.display == "none") {
canvasHidden = true; canvasHidden = true;
containerStyle.display = ""; containerStyle.display = "";
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment