Skip to content

Commit 181eca7

Browse files
committed
refactor: upgrade to 0.9.2
1 parent 09fd188 commit 181eca7

File tree

9 files changed

+706
-4013
lines changed

9 files changed

+706
-4013
lines changed

frameworks/keyed/dlightjs/package-lock.json

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

frameworks/keyed/dlightjs/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,13 @@
1818
"url": "https://github.com/dlight-js/dlight.git"
1919
},
2020
"dependencies": {
21-
"@dlightjs/dlight": "0.9.0"
21+
"@dlightjs/dlight": "0.9.2"
2222
},
2323
"devDependencies": {
2424
"@babel/core": "7.15.0",
2525
"@rollup/plugin-babel": "5.3.0",
2626
"@rollup/plugin-node-resolve": "13.0.4",
27-
"babel-preset-dlight": "0.9.0",
27+
"babel-preset-dlight": "0.9.2",
2828
"rollup": "2.52.3",
2929
"rollup-plugin-terser": "7.0.2"
3030
}

frameworks/keyed/dlightjs/src/main.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -63,11 +63,11 @@ class Main extends View {
6363
}
6464

6565
@SubView
66-
Button({ _$content, text, id, onclick }) {
66+
Button({ _$content, id, onclick }) {
6767
div()
6868
.className("col-sm-6 smallpad")
6969
{
70-
button(_$content ?? text)
70+
button(_$content)
7171
.onclick(onclick)
7272
.id(id)
7373
.className("btn btn-primary btn-block")
@@ -94,22 +94,22 @@ class Main extends View {
9494
.className("row")
9595
{
9696
this.Button("Create 1,000 rows")
97-
.onclick(this.addRows.bind(this))
97+
.onclick(this.addRows)
9898
.id("run")
9999
this.Button("Create 10,000 rows")
100-
.onclick(this.addBig.bind(this))
100+
.onclick(this.addBig)
101101
.id("runlots")
102102
this.Button("Append 1,000 rows")
103-
.onclick(this.append.bind(this))
103+
.onclick(this.append)
104104
.id("add")
105105
this.Button("Update every 10th rows")
106-
.onclick(this.update.bind(this))
106+
.onclick(this.update)
107107
.id("update")
108108
this.Button("Clear")
109-
.onclick(this.clearRows.bind(this))
109+
.onclick(this.clearRows)
110110
.id("clear")
111111
this.Button("Swap Rows")
112-
.onclick(this.swapRows.bind(this))
112+
.onclick(this.swapRows)
113113
.id("swaprows")
114114
}
115115
}

frameworks/non-keyed/dlightjs/package-lock.json

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

frameworks/non-keyed/dlightjs/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,13 @@
1818
"url": "https://github.com/dlight-js/dlight.git"
1919
},
2020
"dependencies": {
21-
"@dlightjs/dlight": "0.9.0"
21+
"@dlightjs/dlight": "0.9.2"
2222
},
2323
"devDependencies": {
2424
"@babel/core": "7.15.0",
2525
"@rollup/plugin-babel": "5.3.0",
2626
"@rollup/plugin-node-resolve": "13.0.4",
27-
"babel-preset-dlight": "0.9.0",
27+
"babel-preset-dlight": "0.9.2",
2828
"rollup": "2.52.3",
2929
"rollup-plugin-terser": "7.0.2"
3030
}

frameworks/non-keyed/dlightjs/src/main.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -63,11 +63,11 @@ class Main extends View {
6363
}
6464

6565
@SubView
66-
Button({ _$content, text, id, onclick }) {
66+
Button({ _$content, id, onclick }) {
6767
div()
6868
.className("col-sm-6 smallpad")
6969
{
70-
button(_$content ?? text)
70+
button(_$content)
7171
.onclick(onclick)
7272
.id(id)
7373
.className("btn btn-primary btn-block")
@@ -94,22 +94,22 @@ class Main extends View {
9494
.className("row")
9595
{
9696
this.Button("Create 1,000 rows")
97-
.onclick(this.addRows.bind(this))
97+
.onclick(this.addRows)
9898
.id("run")
9999
this.Button("Create 10,000 rows")
100-
.onclick(this.addBig.bind(this))
100+
.onclick(this.addBig)
101101
.id("runlots")
102102
this.Button("Append 1,000 rows")
103-
.onclick(this.append.bind(this))
103+
.onclick(this.append)
104104
.id("add")
105105
this.Button("Update every 10th rows")
106-
.onclick(this.update.bind(this))
106+
.onclick(this.update)
107107
.id("update")
108108
this.Button("Clear")
109-
.onclick(this.clearRows.bind(this))
109+
.onclick(this.clearRows)
110110
.id("clear")
111111
this.Button("Swap Rows")
112-
.onclick(this.swapRows.bind(this))
112+
.onclick(this.swapRows)
113113
.id("swaprows")
114114
}
115115
}

0 commit comments

Comments
 (0)