diff options
Diffstat (limited to 'src/adopter.js')
-rw-r--r-- | src/adopter.js | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/adopter.js b/src/adopter.js index 61b1e83..ed692b8 100644 --- a/src/adopter.js +++ b/src/adopter.js @@ -1,6 +1,6 @@ import Base from './Base.js' -import {capitalize} from './helpers.js' -import {makeNode} from './tools.js' +import { capitalize } from './helpers.js' +import { makeNode } from './tools.js' const elements = {} export const root = Symbol('root') @@ -30,7 +30,6 @@ export function makeInstance (element) { return element } - // Adopt existing svg elements export function adopt (node) { // check for presence of node @@ -66,7 +65,7 @@ export function register (element, name = element.name, asRoot = false) { return element } -export function getClass(name) { +export function getClass (name) { return elements[name] } |