[Client] Fix bug

This commit is contained in:
syuilo 2017-02-19 07:14:07 +09:00
parent 97bd21c0f5
commit 72c0358057
2 changed files with 2 additions and 2 deletions

View file

@ -2,7 +2,7 @@ const riot = require('riot');
module.exports = me => {
riot.mixin('i', {
init: () => {
init: function() {
this.I = me;
this.SIGNIN = me != null;

View file

@ -1,7 +1,7 @@
const riot = require('riot');
riot.mixin('user-preview', {
init: () => {
init: function() {
const scan = () => {
this.root.querySelectorAll('[data-user-preview]:not([data-user-preview-attached])')
.forEach(attach.bind(this));