Skip to content

Commit a30ba87

Browse files
committed
updated to the latest version
1 parent fe7f697 commit a30ba87

File tree

3 files changed

+15
-15
lines changed

3 files changed

+15
-15
lines changed

frameworks/keyed/targetjs/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.

frameworks/keyed/targetjs/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,6 @@
2424
"webpack": "^5.91.0",
2525
"webpack-cli": "^5.1.4",
2626
"wepback": "^1.0.0",
27-
"targetj": "1.0.141"
27+
"targetj": "1.0.142"
2828
}
2929
}

frameworks/keyed/targetjs/src/main.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,31 +7,31 @@ App(new TModel("benchmark", {
77
return new TModel('run', {
88
onClick() {
99
const rows = this.getParentValue('rows');
10-
rows.removeAll().activateTarget('buildData', 1000).activateTarget('createRows');
10+
rows.removeAll().activateTarget('buildData', 1000);
1111
}
1212
});
1313
},
1414
runAlotButton() {
1515
return new TModel('runlots', {
1616
onClick() {
1717
const rows = this.getParentValue('rows');
18-
rows.removeAll().activateTarget('buildData', 10000).activateTarget('createRows');
18+
rows.removeAll().activateTarget('buildData', 10000);
1919
}
2020
});
2121
},
2222
addButton() {
2323
return new TModel('add', {
2424
onClick() {
2525
const rows = this.getParentValue('rows');
26-
rows.activateTarget('buildData', 1000).activateTarget('createRows');
26+
rows.activateTarget('buildData', 1000);
2727
}
2828
});
2929
},
3030
updateButton() {
3131
return new TModel('update', {
3232
onClick() {
3333
const rows = this.getParentValue('rows');
34-
rows.activateTarget('selectLinks').activateTarget('updateEvery10thLink');
34+
rows.activateTarget('selectEvery10thLink');
3535
}
3636
});
3737
},
@@ -65,7 +65,7 @@ App(new TModel("benchmark", {
6565
_buildData() {
6666
return buildData(this._buildData);
6767
},
68-
_createRows() {
68+
_createRows$() {
6969
this.prevTargetValue.forEach((data, index) => {
7070
const $tr = this.val('rowTemplate').cloneTemplate();
7171
$tr.attr('data-id', `${index}`);
@@ -74,7 +74,7 @@ App(new TModel("benchmark", {
7474
this.$dom.append$Dom($tr);
7575
});
7676
},
77-
_selectLinks() {
77+
_selectEvery10thLink() {
7878
if (!this.isPrevTargetUpdated()) {
7979
return (this.val(this.key) || []);
8080
}
@@ -85,7 +85,7 @@ App(new TModel("benchmark", {
8585
}
8686
return links;
8787
},
88-
_updateEvery10thLink() {
88+
_updateLinks$() {
8989
this.prevTargetValue.forEach(link => link.textContent += ' !!!');
9090
},
9191
_swap() {

0 commit comments

Comments
 (0)