tangled
alpha
login
or
join now
tombl.dev
/
dhtml
1
fork
atom
a post-component library for building user-interfaces on the web.
1
fork
atom
overview
issues
pulls
pipelines
removed unused create_span function
tombl.dev
7 months ago
c917d5a2
73ad6cd2
verified
This commit was signed with the committer's
known signature
.
tombl.dev
SSH Key Fingerprint:
SHA256:d8AHgL5V+3WdvGdDb3SVBfb0RIRJfkKcqhQ5aG1mVNk=
-9
1 changed file
expand all
collapse all
unified
split
src
client
span.ts
-9
src/client/span.ts
···
5
5
readonly _end: Node
6
6
}
7
7
8
8
-
export function create_span(node: Node): Span {
9
9
-
assert(node.parentNode !== null)
10
10
-
11
11
-
return {
12
12
-
_start: node.parentNode.insertBefore(new Text(), node),
13
13
-
_end: node.parentNode.insertBefore(new Text(), node.nextSibling),
14
14
-
}
15
15
-
}
16
16
-
17
8
export function create_span_into(parent: Node): Span {
18
9
return { _start: parent.appendChild(new Text()), _end: parent.appendChild(new Text()) }
19
10
}