Merge pull request #814 from g-div/v2.1.2
fix the error/memleak in Firefox 3.0.x and 25.0.1 concerning getBBox
This commit is contained in:
commit
b5bca4b855
|
|
@ -917,7 +917,13 @@ window.Raphael && window.Raphael.svg && function(R) {
|
||||||
try {
|
try {
|
||||||
bbox = this.node.getBBox();
|
bbox = this.node.getBBox();
|
||||||
} catch(e) {
|
} catch(e) {
|
||||||
// Firefox 3.0.x plays badly here
|
// Firefox 3.0.x, 25.0.1 (probably more versions affected) play badly here - possible fix
|
||||||
|
bbox = {
|
||||||
|
x: this.node.clientLeft,
|
||||||
|
y: this.node.clientTop,
|
||||||
|
width: this.node.clientWidth,
|
||||||
|
height: this.node.clientHeight
|
||||||
|
}
|
||||||
} finally {
|
} finally {
|
||||||
bbox = bbox || {};
|
bbox = bbox || {};
|
||||||
if(canvasHidden){
|
if(canvasHidden){
|
||||||
|
|
|
||||||
File diff suppressed because one or more lines are too long
|
|
@ -6717,7 +6717,13 @@
|
||||||
try {
|
try {
|
||||||
bbox = this.node.getBBox();
|
bbox = this.node.getBBox();
|
||||||
} catch(e) {
|
} catch(e) {
|
||||||
// Firefox 3.0.x plays badly here
|
// Firefox 3.0.x, 25.0.1 (probably more versions affected) play badly here - possible fix
|
||||||
|
bbox = {
|
||||||
|
x: this.node.clientLeft,
|
||||||
|
y: this.node.clientTop,
|
||||||
|
width: this.node.clientWidth,
|
||||||
|
height: this.node.clientHeight
|
||||||
|
}
|
||||||
} finally {
|
} finally {
|
||||||
bbox = bbox || {};
|
bbox = bbox || {};
|
||||||
if(canvasHidden){
|
if(canvasHidden){
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue