Skip to content

Commit

Permalink
refactor(hdom): cleanup imports
Browse files Browse the repository at this point in the history
  • Loading branch information
postspectacular committed Aug 1, 2018
1 parent e0ce106 commit 1467273
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
13 changes: 6 additions & 7 deletions packages/hdom/src/diff.ts
@@ -1,8 +1,9 @@
import { equiv } from "@thi.ng/equiv";
import * as isa from "@thi.ng/checks/is-array";
import * as iss from "@thi.ng/checks/is-string";
import * as diff from "@thi.ng/diff";

import { DiffLogEntry } from "@thi.ng/diff/api";
import { diffArray } from "@thi.ng/diff/array";
import { diffObject } from "@thi.ng/diff/object";
import { equiv } from "@thi.ng/equiv";
import {
createDOM,
removeAttribs,
Expand All @@ -12,10 +13,8 @@ import {

const isArray = isa.isArray;
const isString = iss.isString;
const diffArray = diff.diffArray;
const diffObject = diff.diffObject;

const SEMAPHORE = Symbol("SEMAPHORE");
const SEMAPHORE = Symbol();

/**
* Takes a DOM root element and two hiccup trees, `prev` and `curr`.
Expand Down Expand Up @@ -156,7 +155,7 @@ function diffAttributes(el: Element, prev: any, curr: any) {
}
}

function extractEquivElements(edits: diff.DiffLogEntry<any>[]) {
function extractEquivElements(edits: DiffLogEntry<any>[]) {
let k, v, e, ek;
const equiv = {};
for (let i = edits.length; --i >= 0;) {
Expand Down
2 changes: 1 addition & 1 deletion packages/hdom/src/normalize.ts
@@ -1,10 +1,10 @@
import { illegalArgs } from "@thi.ng/errors";
import * as impf from "@thi.ng/checks/implements-function";
import * as isa from "@thi.ng/checks/is-array";
import * as isf from "@thi.ng/checks/is-function";
import * as isi from "@thi.ng/checks/is-iterable";
import * as iso from "@thi.ng/checks/is-plain-object";
import * as iss from "@thi.ng/checks/is-string";
import { illegalArgs } from "@thi.ng/errors/illegal-arguments";
import { TAG_REGEXP } from "@thi.ng/hiccup/api";

const isArray = isa.isArray;
Expand Down

0 comments on commit 1467273

Please sign in to comment.