diff --git a/index.js b/index.js index a660a75..96cc721 100644 --- a/index.js +++ b/index.js @@ -5,16 +5,17 @@ module.exports = function(req, res) { messages = req.flash(); types = Object.keys(messages); len = types.length; - if (!len) return ''; + if (!len) return '
'; buf.push('
'); for (i = 0; 0 <= len ? i < len : i > len; 0 <= len ? i++ : i--) { type = types[i]; msgs = messages[type]; - if (msgs != null) { + if (msgs !== null) { for (j = 0, _ref = msgs.length; 0 <= _ref ? j < _ref : j > _ref; 0 <= _ref ? j++ : j--) { msg = msgs[j]; - buf.push("
"); - buf.push("×"); + buf.push("
"); + buf.push(''); + // buf.push("×"); buf.push(msg); buf.push("
"); } diff --git a/package.json b/package.json index b8a07bb..b7b87ed 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,10 @@ { "name": "express-messages-bootstrap" , "description": "Express flash notification message rendering compatible with Twitter's Bootstrap v2.0+. Based on TJ Holowaychuk's express-messages." - , "version": "0.0.9" + , "version": "0.1.0" , "author": "Jason Giedymin " + , "contributors": [ + { "name": "Nick Baugh", "email": "niftylettuce@gmail.com" } + ] , "keywords": ["express", "bootstrap", "flash"] , "repository": "git://github.com/JasonGiedymin/express-messages-bootstrap" , "main": "index"