add property to each array element
This commit is contained in:
parent
c75f1064c3
commit
0b864d06dd
|
@ -83,6 +83,7 @@ Notice.prototype.render = function () {
|
||||||
title,
|
title,
|
||||||
]),
|
]),
|
||||||
h('div.markdown', {
|
h('div.markdown', {
|
||||||
|
key: 'notice-div-key',
|
||||||
onScroll: (e) => {
|
onScroll: (e) => {
|
||||||
var object = e.currentTarget
|
var object = e.currentTarget
|
||||||
if (object.offsetHeight + object.scrollTop + 100 >= object.scrollHeight) {
|
if (object.offsetHeight + object.scrollTop + 100 >= object.scrollHeight) {
|
||||||
|
@ -108,6 +109,7 @@ Notice.prototype.render = function () {
|
||||||
]),
|
]),
|
||||||
|
|
||||||
h('button', {
|
h('button', {
|
||||||
|
key: 'notice-button-key',
|
||||||
disabled,
|
disabled,
|
||||||
onClick: () => {
|
onClick: () => {
|
||||||
this.setState({disclaimerDisabled: true})
|
this.setState({disclaimerDisabled: true})
|
||||||
|
|
Loading…
Reference in New Issue