Skip to content

Commit

Permalink
fixed Dom export
Browse files Browse the repository at this point in the history
  • Loading branch information
easylogic committed Aug 2, 2020
1 parent 5272c55 commit 88ffff0
Show file tree
Hide file tree
Showing 9 changed files with 2,116 additions and 2,097 deletions.
2,090 changes: 1,045 additions & 1,045 deletions dist/sapa.esm.js

Large diffs are not rendered by default.

2,091 changes: 1,046 additions & 1,045 deletions dist/sapa.js

Large diffs are not rendered by default.

18 changes: 18 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@easylogic/sapa",
"version": "0.0.15",
"version": "0.1.0",
"description": "Simple JS Application Library",
"main": "dist/sapa.js",
"module": "dist/sapa.esm.js",
Expand All @@ -27,6 +27,7 @@
"html-webpack-plugin": "^3.2.0",
"mini-css-extract-plugin": "^0.6.0",
"postcss-loader": "^3.0.0",
"rollup": "^2.23.0",
"rollup-plugin-serve": "^1.0.1",
"sass": "^1.19.0",
"sass-loader": "^7.1.0",
Expand Down
3 changes: 2 additions & 1 deletion src/util/App.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import Dom from "./Dom";

import { POINTERMOVE, POINTEREND, DEBOUNCE, RESIZE } from "./Event";
import BaseStore from "./BaseStore";
import { UIElement, EVENT } from "./UIElement";
import { debounce } from "./functions/func";
import { ADD_BODY_MOUSEMOVE, ADD_BODY_MOUSEUP } from "../types/constants";
import { Dom } from "./Dom";

const EMPTY_POS = { x: 0, y: 0 };
const DEFAULT_POS = { x: Number.MAX_SAFE_INTEGER, y: Number.MAX_SAFE_INTEGER };
Expand Down
2 changes: 1 addition & 1 deletion src/util/Dom.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {
} from "./functions/func";
import { DomDiff } from "./DomDiff";

export default class Dom {
export class Dom {
constructor(tag, className, attr) {
if (isNotString(tag)) {
this.el = tag;
Expand Down
2 changes: 1 addition & 1 deletion src/util/EventMachine.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import {
LOAD,
VDOM,
} from "./Event";
import Dom from "./Dom";
import {
isFunction,
isArray,
Expand All @@ -17,6 +16,7 @@ import {
import DomEventHandler from "./handler/DomEventHandler";
import BindHandler from "./handler/BindHandler";
import { ADD_BODY_MOUSEMOVE, ADD_BODY_MOUSEUP } from "../types/constants";
import { Dom } from "./Dom";

const REFERENCE_PROPERTY = "ref";
const TEMP_DIV = Dom.create("div");
Expand Down
3 changes: 1 addition & 2 deletions src/util/handler/DomEventHandler.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import BaseHandler from "./BaseHandler";
import Event, { CHECK_SAPARATOR, DOM_EVENT_SAPARATOR, SAPARATOR, NAME_SAPARATOR, CHECK_DOM_EVENT_PATTERN } from "../Event";
import { debounce, throttle, isNotUndefined, isFunction } from "../functions/func";
import Dom from "../Dom";

import { Dom } from "../Dom";

const scrollBlockingEvents = {
'touchstart': true,
Expand Down
1 change: 0 additions & 1 deletion src/util/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

export * as App from "./App";
export * from "./Dom";
export * from "./Event";
Expand Down

0 comments on commit 88ffff0

Please sign in to comment.