From 76571679534f6f53908f23fa5dca408ce31ff5e7 Mon Sep 17 00:00:00 2001 From: Nicolas Stepien Date: Fri, 15 Feb 2013 17:49:43 +0100 Subject: [PATCH] Always create the subject element. --- 4chan_x.user.js | 4 ++-- src/features.coffee | 6 +----- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/4chan_x.user.js b/4chan_x.user.js index 6a0db4081..a7ed530c2 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -20,7 +20,7 @@ // @icon https://github.com/MayhemYDG/4chan-x/raw/stable/img/icon.gif // ==/UserScript== -/* 4chan X Alpha - Version 3.0.0 - 2013-02-14 +/* 4chan X Alpha - Version 3.0.0 - 2013-02-15 * http://mayhemydg.github.com/4chan-x/ * * Copyright (c) 2009-2011 James Campos @@ -2464,7 +2464,7 @@ emailStart = ''; emailEnd = ''; } - subject = subject ? "" + subject + "" : ''; + subject = "" + (subject || '') + ""; userID = !capcode && uniqueID ? (" (ID: ") + ("" + uniqueID + ") ") : ''; switch (capcode) { case 'admin': diff --git a/src/features.coffee b/src/features.coffee index c9fa37e6b..7ab04544f 100644 --- a/src/features.coffee +++ b/src/features.coffee @@ -1183,11 +1183,7 @@ Build = emailStart = '' emailEnd = '' - subject = - if subject - "#{subject}" - else - '' + subject = "#{subject or ''}" userID = if !capcode and uniqueID