diff options
author | Ulrich-Matthias Schäfer <ulima.ums@googlemail.com> | 2017-04-22 21:36:16 +0200 |
---|---|---|
committer | Ulrich-Matthias Schäfer <ulima.ums@googlemail.com> | 2017-04-22 21:36:16 +0200 |
commit | 03d25548fe99c87ed74e789b894e37a7fc6caf34 (patch) | |
tree | 8f9ee0a5291ef18ccff50538ebae52578b0880be /src/style.js | |
parent | 408940add58e81e7879098682e94504a8cf3a734 (diff) | |
download | svg.js-03d25548fe99c87ed74e789b894e37a7fc6caf34.tar.gz svg.js-03d25548fe99c87ed74e789b894e37a7fc6caf34.zip |
rename style to css
Diffstat (limited to 'src/style.js')
-rw-r--r-- | src/style.js | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/src/style.js b/src/style.js deleted file mode 100644 index b5f2702..0000000 --- a/src/style.js +++ /dev/null @@ -1,24 +0,0 @@ -SVG.extend(SVG.Element, { - // Dynamic style generator - style: function(s, v) { - if (arguments.length == 0) { - // get full style - return this.node.style.cssText || '' - - } else if (arguments.length < 2) { - // apply every style individually if an object is passed - if (typeof s == 'object') { - for (v in s) this.style(v, s[v]) - - } else { - // act as a getter if the first and only argument is not an object - return this.node.style[camelCase(s)] - } - - } else { - this.node.style[camelCase(s)] = v === null || SVG.regex.isBlank.test(v) ? '' : v - } - - return this - } -}) |