diff options
author | wout <wout@impinc.co.uk> | 2013-01-05 16:52:14 +0100 |
---|---|---|
committer | wout <wout@impinc.co.uk> | 2013-01-05 16:52:14 +0100 |
commit | eb58a52f9ad219331961119bf114480a58f7b17c (patch) | |
tree | 1acd37aa3d29be76dd5c8f103ff94d266dac81ad /src/container.js | |
parent | b40093fbfb9cfa0e8b9f67a2db18ea0b68947ef4 (diff) | |
download | svg.js-eb58a52f9ad219331961119bf114480a58f7b17c.tar.gz svg.js-eb58a52f9ad219331961119bf114480a58f7b17c.zip |
Removed temp wrapper in safari bug fix
Diffstat (limited to 'src/container.js')
-rw-r--r-- | src/container.js | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/src/container.js b/src/container.js index 41b5f09..14ad570 100644 --- a/src/container.js +++ b/src/container.js @@ -125,25 +125,6 @@ SVG.Container = { this.node.removeChild(this.node.lastChild); return this; - }, - // Hack for safari preventing text to be rendered in one line. - // Basically it sets the position of the svg node to absolute - // when the dom is loaded, and resets it to relative a few milliseconds later. - stage: function() { - var check, element = this; - - check = function() { - if (document.readyState === 'complete') { - element.attr('style', 'position:absolute;'); - setTimeout(function() { element.attr('style', 'position:relative;'); }, 5); - } else { - setTimeout(check, 10); - } - }; - - check(); - - return this; } };
\ No newline at end of file |