aboutsummaryrefslogtreecommitdiffstats
path: root/src/elements/A.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/elements/A.js')
-rw-r--r--src/elements/A.js9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/elements/A.js b/src/elements/A.js
index 6f9bec2..0388314 100644
--- a/src/elements/A.js
+++ b/src/elements/A.js
@@ -8,15 +8,16 @@ export default class A extends Container {
super(nodeOrNew('a', node), attrs)
}
+ // Link target attribute
+ target (target) {
+ return this.attr('target', target)
+ }
+
// Link url
to (url) {
return this.attr('href', url, xlink)
}
- // Link target attribute
- target (target) {
- return this.attr('target', target)
- }
}
registerMethods({