Skip to content
This repository was archived by the owner on Sep 3, 2022. It is now read-only.

Commit 89c2e3b

Browse files
committed
Minor update for readibility.
1 parent 8cdf1d7 commit 89c2e3b

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

dist/composi-core.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package-lock.json

Lines changed: 1 addition & 1 deletion
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
@@ -1,6 +1,6 @@
11
{
22
"name": "@composi/core",
3-
"version": "0.9.2",
3+
"version": "0.9.3",
44
"description": "A JavaScript library for creating websites, PWAs and hybrid apps.",
55
"main": "src/index.js",
66
"scripts": {

src/runtime.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export function run(program) {
2424
*/
2525
function send(message) {
2626
if (isRunning) {
27-
change(update(message, state))
27+
updateView(update(message, state))
2828
}
2929
}
3030

@@ -33,7 +33,7 @@ export function run(program) {
3333
* @param {any[]} update
3434
* @return {void} undefined
3535
*/
36-
function change(update) {
36+
function updateView(update) {
3737
let init = program.init()
3838
if (update) {
3939
;[state, effect] = update
@@ -48,19 +48,19 @@ export function run(program) {
4848
view(state, send)
4949
}
5050

51-
change(state)
51+
updateView(state)
5252

5353
/**
5454
* Function to end runtime.
5555
* @return {void} undefined
5656
*/
57-
function end() {
57+
function endProgram() {
5858
if (isRunning) {
5959
isRunning = false
6060
if (done) {
6161
done(state)
6262
}
6363
}
6464
}
65-
return end
65+
return endProgram
6666
}

0 commit comments

Comments
 (0)