From dbfc7e086ea6cea9ab9fa56d403a4224573b1798 Mon Sep 17 00:00:00 2001 From: Alexander Yakovlev Date: Wed, 2 Mar 2016 23:41:18 +0700 Subject: [PATCH] Fixed Booleans (again) --- lib/room.coffee | 4 ++-- lib/view.coffee | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/room.coffee b/lib/room.coffee index 072b0d2..e1be822 100644 --- a/lib/room.coffee +++ b/lib/room.coffee @@ -6,9 +6,9 @@ markdown = require('./markdown.coffee') assert = (msg, assertion) -> console.assert assertion, msg -Function.prototype.fcall = Function.prototype.call; +Function.prototype.fcall = Function.prototype.call Boolean.prototype.fcall = () -> - return this + return this.valueOf() String.prototype.fcall = () -> return this diff --git a/lib/view.coffee b/lib/view.coffee index ebbf0df..4d4d350 100644 --- a/lib/view.coffee +++ b/lib/view.coffee @@ -149,8 +149,8 @@ class SaletView if (not listOfIds? or listOfIds.length == 0) return - currentRoom = salet.getCurrentRoom(); - $options = $("