This commit is contained in:
syuilo
2017-02-22 01:20:57 +09:00
parent 2a1fab34df
commit 1f3e128ed5
14 changed files with 24 additions and 27 deletions

View File

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

View File

@ -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;