Skip to content

Commit

Permalink
🎨 Prettiering
Browse files Browse the repository at this point in the history
  • Loading branch information
dapize committed Jun 26, 2022
1 parent 2c79a70 commit cff639a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/helpers/mainObserver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const mainObserver = (layouter: ILayouter) => {
if (Object.keys(props).length) {
layouter.set(node, props);
}
searchAndProcess(layouter, node)
searchAndProcess(layouter, node);
}
});
} else if (mutation.type === 'attributes') {
Expand Down
5 changes: 4 additions & 1 deletion src/helpers/searchAndProcess.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
import { ILayouter } from './../layouter';
import { processors } from '../config/processors';

const searchAndProcess = (layouter: ILayouter, context: Document | HTMLElement | Element) => {
const searchAndProcess = (
layouter: ILayouter,
context: Document | HTMLElement | Element
) => {
return new Promise((resolve) => {
const props = Object.keys(processors);
const attrs = props.map((prop) => `[${prop}]`).join(', ');
Expand Down

0 comments on commit cff639a

Please sign in to comment.