mirror of
https://github.com/MercuryWorkshop/dreamlandjs.git
synced 2025-05-16 15:40:01 -04:00
bump version
This commit is contained in:
parent
01129edb48
commit
6cd1e1f304
2 changed files with 9 additions and 4 deletions
|
@ -84,7 +84,7 @@ export function handle(references, callback) {
|
||||||
(pair) => values.get(pair[0])[pair[1]],
|
(pair) => values.get(pair[0])[pair[1]],
|
||||||
);
|
);
|
||||||
|
|
||||||
const value = mapping(...flattened_values);
|
const value = mapping(...flattened_values.reverse());
|
||||||
|
|
||||||
callback(value);
|
callback(value);
|
||||||
};
|
};
|
||||||
|
@ -363,6 +363,11 @@ function h(type, props, ...children) {
|
||||||
elm.addEventListener("change", () => {
|
elm.addEventListener("change", () => {
|
||||||
reference.proxy[reference.property] = elm.value;
|
reference.proxy[reference.property] = elm.value;
|
||||||
})
|
})
|
||||||
|
} else if (propname == "checked") {
|
||||||
|
handle(references, value => elm.checked = value);
|
||||||
|
elm.addEventListener("click", () => {
|
||||||
|
reference.proxy[reference.property] = elm.checked;
|
||||||
|
})
|
||||||
}
|
}
|
||||||
delete props[name];
|
delete props[name];
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "@mercuryworkshop/alicejs",
|
"name": "@mercuryworkshop/alicejs",
|
||||||
"version": "1.1.2",
|
"version": "1.1.3",
|
||||||
"description": "A utilitarian HTML rendering library",
|
"description": "A utilitarian HTML rendering library",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "esbuild --minify --bundle AliceJS.js --outfile=index.js && tsc",
|
"build": "esbuild --minify --bundle AliceJS.js --outfile=index.js && tsc",
|
||||||
|
@ -12,8 +12,8 @@
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"exports": {
|
"exports": {
|
||||||
".": {
|
".": {
|
||||||
"browser": "./dist/index.js",
|
"browser": "./index.js",
|
||||||
"node": "./dist/index.js",
|
"node": "./index.js",
|
||||||
"types":"./AliceJS.d.ts"
|
"types":"./AliceJS.d.ts"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue