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,
]),
h('div.markdown', {
key: 'notice-div-key',
onScroll: (e) => {
var object = e.currentTarget
if (object.offsetHeight + object.scrollTop + 100 >= object.scrollHeight) {
@ -108,6 +109,7 @@ Notice.prototype.render = function () {
]),
h('button', {
key: 'notice-button-key',
disabled,
onClick: () => {
this.setState({disclaimerDisabled: true})