From 65014a03caef9ee34eef01462aa931bc103812dd Mon Sep 17 00:00:00 2001 From: Sam Date: Mon, 30 Dec 2013 19:50:52 +1100 Subject: [PATCH] appease jshint --- app/assets/javascripts/discourse/lib/formatter.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/assets/javascripts/discourse/lib/formatter.js b/app/assets/javascripts/discourse/lib/formatter.js index f23ea07a8f1..9796457396e 100644 --- a/app/assets/javascripts/discourse/lib/formatter.js +++ b/app/assets/javascripts/discourse/lib/formatter.js @@ -24,10 +24,10 @@ Discourse.Formatter = (function(){ var args = Array.prototype.slice.call(arguments), hash = "", i = args.length; - currentArg = null; + var currentArg = null; while (i--) { currentArg = args[i]; - hash += (currentArg === Object(currentArg)) ? + hash += (currentArg === new Object(currentArg)) ? JSON.stringify(currentArg) : currentArg; if(!fn.memoize) { fn.memoize = {};