From e4e239c159bdf4973c3710d1fa16bf585d4d789c Mon Sep 17 00:00:00 2001 From: Robin Ward Date: Thu, 15 Jan 2015 15:43:20 -0500 Subject: [PATCH] Add some safety when rendering a dropdown button to make sure it has content. --- .../discourse/views/dropdown-button.js.es6 | 29 ++++++++++--------- 1 file changed, 16 insertions(+), 13 deletions(-) diff --git a/app/assets/javascripts/discourse/views/dropdown-button.js.es6 b/app/assets/javascripts/discourse/views/dropdown-button.js.es6 index b10d8ad7a4f..e656d6424f6 100644 --- a/app/assets/javascripts/discourse/views/dropdown-button.js.es6 +++ b/app/assets/javascripts/discourse/views/dropdown-button.js.es6 @@ -31,20 +31,23 @@ export default Discourse.View.extend(StringBuffer, { buffer.push(""); buffer.push("");