add property to each array element

This commit is contained in:
viktor 2018-08-03 17:36:22 +03:00
parent c75f1064c3
commit 0b864d06dd
1 changed files with 2 additions and 0 deletions

View File

@ -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})