Fix
This commit is contained in:
@ -136,8 +136,8 @@
|
||||
this.connection = new this.MessagingStreamConnection(this.I, this.user.id);
|
||||
|
||||
this.on('mount', () => {
|
||||
this.connection.event.on('message' this.onMessage);
|
||||
this.connection.event.on('read' this.onRead);
|
||||
this.connection.event.on('message', this.onMessage);
|
||||
this.connection.event.on('read', this.onRead);
|
||||
|
||||
document.addEventListener('visibilitychange', this.onVisibilitychange);
|
||||
|
||||
|
@ -2,13 +2,12 @@
|
||||
<style>
|
||||
:scope
|
||||
display inline
|
||||
|
||||
</style>
|
||||
<script>
|
||||
this.on('mount', () => {
|
||||
// https://github.com/riot/riot/issues/2103
|
||||
//value = this.opts.value
|
||||
const value = this.opts.riotValue;
|
||||
let value = this.opts.riotValue;
|
||||
const max = this.opts.max;
|
||||
|
||||
if (max != null && value > max) value = max;
|
||||
|
Reference in New Issue
Block a user