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 = {};