summaryrefslogtreecommitdiffstats
path: root/src/doc.js
diff options
context:
space:
mode:
authorUlrich-Matthias Schäfer <ulima.ums@googlemail.com>2017-04-22 22:16:36 +0200
committerUlrich-Matthias Schäfer <ulima.ums@googlemail.com>2017-04-22 22:16:36 +0200
commitab1c07e80bd21f2cdf773be238d4dd754db4e80a (patch)
treeb1386635a4e54f29eee8cfa41151fd930610c25e /src/doc.js
parent03d25548fe99c87ed74e789b894e37a7fc6caf34 (diff)
downloadsvg.js-ab1c07e80bd21f2cdf773be238d4dd754db4e80a.tar.gz
svg.js-ab1c07e80bd21f2cdf773be238d4dd754db4e80a.zip
changed `style()` to `css()`
it now accepts array as input and returns object when no argument given (#517) also removed sub-pixel offset fix
Diffstat (limited to 'src/doc.js')
-rw-r--r--src/doc.js13
1 files changed, 0 insertions, 13 deletions
diff --git a/src/doc.js b/src/doc.js
index 6a48a6a..4192516 100644
--- a/src/doc.js
+++ b/src/doc.js
@@ -55,19 +55,6 @@ SVG.Doc = SVG.invent({
, parent: function() {
return this.node.parentNode.nodeName == '#document' ? null : this.node.parentNode
}
- // Fix for possible sub-pixel offset. See:
- // https://bugzilla.mozilla.org/show_bug.cgi?id=608812
- , spof: function(spof) {
- var pos = this.node.getScreenCTM()
-
- if (pos)
- this
- .style('left', (-pos.e % 1) + 'px')
- .style('top', (-pos.f % 1) + 'px')
-
- return this
- }
-
// Removes the doc from the DOM
, remove: function() {
if(this.parent()) {