Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix error for removing message

  • Loading branch information...
commit 8ac43425ee642fa0ea9bf40926f1013310f471b0 1 parent afb231f
@eherve authored
Showing with 2 additions and 2 deletions.
  1. +1 −1  lib/flashMessages.js
  2. +1 −1  package.json
View
2  lib/flashMessages.js
@@ -56,7 +56,7 @@ function addToFlash(flash, message) {
for (var index = 0; index < flash.length; ++index) {
if (flash[index] && flash[index].key == message.key) {
if (message.value != undefined) flash[index] = message;
- else flash.slice(index, 1);
+ else flash.splice(index, 1);
return;
}
}
View
2  package.json
@@ -1,7 +1,7 @@
{
"name": "flash-messages",
"description": "Flash messages support for ExpressJs.",
- "version": "0.0.3",
+ "version": "0.0.4",
"repository": {
"type": "git",
"url": "https://github.com/eherve/flash-messages.git"
Please sign in to comment.
Something went wrong with that request. Please try again.