From 4f41743da46ff428425ed707a3e4b95ec0cad0a5 Mon Sep 17 00:00:00 2001 From: Bruno Dias Date: Mon, 13 Apr 2015 18:53:04 -0300 Subject: [PATCH] Fix bug with writers not writing when .options isn't present --- lib/situation.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/situation.js b/lib/situation.js index c2e93dd..f95f874 100644 --- a/lib/situation.js +++ b/lib/situation.js @@ -191,7 +191,7 @@ RaconteurSituation.prototype.act = function (character, system, action) { if (self.writers[ref] === undefined) { throw new Error("Tried to call undefined writer:" + ref); } - if ($('.options')) { + if ($('.options').length) { system.writeBefore( markdown.render( self.writers[ref].fcall(self, character, system, action))