aboutsummaryrefslogtreecommitdiffstats
path: root/src/elements/Style.js
diff options
context:
space:
mode:
authorUlrich-Matthias Schäfer <ulima.ums@googlemail.com>2020-04-10 17:59:56 +1000
committerUlrich-Matthias Schäfer <ulima.ums@googlemail.com>2020-04-10 17:59:56 +1000
commite497f9ccfb3107ba5c0991db5e1e07a2297948e6 (patch)
tree24874d4f674d1d9e8df806bcb940b338f7d3b7a1 /src/elements/Style.js
parent6ac53822882f5cc852c8e8e41e9507333fed2180 (diff)
downloadsvg.js-e497f9ccfb3107ba5c0991db5e1e07a2297948e6.tar.gz
svg.js-e497f9ccfb3107ba5c0991db5e1e07a2297948e6.zip
added even more tests
Diffstat (limited to 'src/elements/Style.js')
-rw-r--r--src/elements/Style.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/elements/Style.js b/src/elements/Style.js
index 0b7d952..62467d8 100644
--- a/src/elements/Style.js
+++ b/src/elements/Style.js
@@ -1,4 +1,4 @@
-import { nodeOrNew, register, wrapWithAttrCheck } from '../utils/adopter.js'
+import { nodeOrNew, register } from '../utils/adopter.js'
import { registerMethods } from '../utils/methods.js'
import { unCamelCase } from '../utils/utils.js'
import Element from './Element.js'
@@ -42,12 +42,12 @@ export default class Style extends Element {
}
registerMethods('Dom', {
- style: wrapWithAttrCheck(function (selector, obj) {
+ style (selector, obj) {
return this.put(new Style()).rule(selector, obj)
- }),
- fontface: wrapWithAttrCheck(function (name, src, params) {
+ },
+ fontface (name, src, params) {
return this.put(new Style()).font(name, src, params)
- })
+ }
})
register(Style, 'Style')