From bbd081591df1b838cb84fb6ab0e7a11c97f3fb3f Mon Sep 17 00:00:00 2001 From: Peter Cottle Date: Fri, 28 Sep 2012 14:09:59 -0700 Subject: [PATCH] still debugging stupid width issue --- src/errors.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/errors.js b/src/errors.js index 83e5e299..a48a5ab7 100644 --- a/src/errors.js +++ b/src/errors.js @@ -12,6 +12,9 @@ var MyError = Backbone.Model.extend({ }, toResult: function() { + if (!this.get('msg').length) { + return ''; + } return '

' + this.get('msg').replace(/\n/g, '

') + '

'; } });