Skip to content

Commit 6dd2439

Browse files
committed
fix (attr render)
1 parent 60cf4bd commit 6dd2439

File tree

6 files changed

+55
-147
lines changed

6 files changed

+55
-147
lines changed

package-lock.json

+30-125
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
"@types/jquery": "^3.3.22",
3131
"@types/sinon": "^7.0.5",
3232
"app-bundler": "^0.1.2",
33+
"appcfg": "^0.4.64",
3334
"atma": "^0.15.12",
3435
"atma-io": "^1.2.28",
3536
"atma-io-middleware-condcomments": "^1.2.8",

package.yml

+19-16
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ apps:
1919
defines:
2020
BROWSER: false
2121
NODE: true
22+
2223
browser-default:
2324
outputMain: lib/mask.js
2425
package:
@@ -28,6 +29,8 @@ apps:
2829
defines:
2930
BROWSER: true
3031
NODE: false
32+
atma-loader-ts:
33+
typescript: "#import ./tsconfig.json"
3134
atma-io-middleware-uglify:
3235
uglify:
3336
warnings: true
@@ -79,26 +82,26 @@ common:
7982
removeUnusedExports: true
8083
lazy:
8184
"/custom/*":
82-
- modules/exports
83-
- expression/src/exports
85+
- modules/exports
86+
- expression/src/exports
8487
"/expression/*":
85-
- project/observer
88+
- project/observer
8689
"/builder/*":
87-
- "/feature/"
90+
- "/feature/"
8891
"/renderer/*":
89-
- compo/exports
92+
- compo/exports
9093
"/mask-compo/*":
91-
- util/reporters
92-
- parser/exports
93-
- builder/exports
94-
- expression/src/exports
95-
- renderer/exports
96-
- parser/exports
97-
- "/feature/"
98-
CompoStatics\b:
99-
- Component
94+
- util/reporters
95+
- parser/exports
96+
- builder/exports
97+
- expression/src/exports
98+
- renderer/exports
99+
- parser/exports
100+
- "/feature/"
101+
"CompoStatics\b":
102+
- Component
100103
"/expression/*":
101-
- mask-compo
104+
- mask-compo
102105
dynamicDependencies:
103106
- "^vm$"
104107
- "^fs$"
@@ -113,7 +116,7 @@ common:
113116
js:
114117
- atma-io-middleware-condcomments:read
115118
- atma-io-middleware-importer:read
116-
- atma-io-middleware-uglify:write
119+
#- atma-io-middleware-uglify:write
117120
ts:
118121
- atma-io-middleware-condcomments:read
119122
- atma-io-middleware-importer:read

projects/mask-binding/src/utilities/bind.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,6 @@ function bind (currentVal, expr, model, ctx, element, ctr, attrName, type: IUtil
145145
Component.attach(ctr, 'dispose', () => {
146146
expression_unbind(expr, model, owner, binder);
147147
});
148-
149148
}
150149

151150
customUtil_register('bind', {
@@ -160,7 +159,7 @@ customUtil_register('bind', {
160159
let ast = expression_parse(expr, false, node);
161160
let wValue = expression_eval_safe(ast, model, ctx, owner, node);
162161

163-
// though we apply value's to `this` context, but it is only for immediat use
162+
// though we apply value's to `this` context, but it is only for immediate use
164163
// in .node() function, as `this` context is a static object that share all bind
165164
// utils
166165

@@ -201,6 +200,7 @@ customUtil_register('bind', {
201200

202201
this.value = value;
203202
this.wValue = wValue;
203+
return this.value;
204204
},
205205
attr (expr, model, ctx, el, ctr, attrName, type: IUtilType){
206206
bind(

tsconfig.json

+2-3
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727
]
2828

2929
},
30-
"module": "commonjs",
31-
"target": "es6"
30+
"module": "es2022"
3231
}
33-
}
32+
}

0 commit comments

Comments
 (0)