Skip to content

Commit 58a0be8

Browse files
committed
fix (fs path) normalize lower-upper case
1 parent dcae40f commit 58a0be8

File tree

3 files changed

+37
-8
lines changed

3 files changed

+37
-8
lines changed

package-lock.json

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
"@types/jquery": "^3.3.22",
2727
"@types/sinon": "^7.0.5",
2828
"app-bundler": "0.0.65",
29-
"atma": "^0.11.18",
29+
"atma": "^0.11.19",
3030
"atma-io-middleware-condcomments": "^1.2.6",
3131
"atma-io-middleware-importer": "^1.1.37",
3232
"atma-io-middleware-uglify": "^1.1.21",

projects/mask-j/src/jmask/jMask.ts

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
import { Dom } from '@core/dom/exports';
2+
import { Proto } from './proto'
3+
import { ManipAttr } from './manip_attr'
4+
import { ManipClass } from './manip_class'
5+
import { ManipDom} from './manip_dom'
6+
import { Traverse } from './traverse'
7+
import { obj_extendMany } from '@utils/obj';
8+
9+
10+
export function jMask (mix) {
11+
if (this instanceof jMask === false)
12+
return new (jMask as any)(mix);
13+
if (mix == null)
14+
return this;
15+
if (mix.type === Dom.SET)
16+
return mix;
17+
return this.add(mix);
18+
}
19+
20+
obj_extendMany(
21+
Proto,
22+
ManipAttr,
23+
ManipClass,
24+
ManipDom,
25+
Traverse,
26+
{ constructor: jMask }
27+
);
28+
29+
jMask.prototype = Proto;

0 commit comments

Comments
 (0)