From 72c03580570e2fb93bfbeb99df771b7f422344ec Mon Sep 17 00:00:00 2001 From: syuilo Date: Sun, 19 Feb 2017 07:14:07 +0900 Subject: [PATCH] [Client] Fix bug --- src/web/app/common/scripts/i.js | 2 +- src/web/app/desktop/scripts/user-preview.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/web/app/common/scripts/i.js b/src/web/app/common/scripts/i.js index 66ce37d50..20c33c640 100644 --- a/src/web/app/common/scripts/i.js +++ b/src/web/app/common/scripts/i.js @@ -2,7 +2,7 @@ const riot = require('riot'); module.exports = me => { riot.mixin('i', { - init: () => { + init: function() { this.I = me; this.SIGNIN = me != null; diff --git a/src/web/app/desktop/scripts/user-preview.js b/src/web/app/desktop/scripts/user-preview.js index 8351f0e75..1964384fd 100644 --- a/src/web/app/desktop/scripts/user-preview.js +++ b/src/web/app/desktop/scripts/user-preview.js @@ -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));