Permalink
Browse files

delete `type` from key when set in case it was hash or list

  • Loading branch information...
fent committed Feb 7, 2012
1 parent 1b7a3ae commit e3e24457884afa95847df5a294bf34889e565fb1
Showing with 2 additions and 0 deletions.
  1. +2 −0 lib/eventvat.js
View
@@ -423,6 +423,7 @@
if (has(this.hash, key)) {
this.persist(key);
+ delete this.hash[key].type;
this.hash[key].value = value;
} else {
this.hash[key] = { value: value };
@@ -488,6 +489,7 @@
var that = this;
if(has(this.hash, key)) {
+ delete this.hash[key].type;
this.hash[key].value = value;
}
else {

0 comments on commit e3e2445

Please sign in to comment.