Skip to content

Commit

Permalink
[getdel] added function that gets and deletes a key
Browse files Browse the repository at this point in the history
  • Loading branch information
dscape committed Mar 16, 2012
1 parent 79c9dec commit 547aa5c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions lib/eventvat.js
Expand Up @@ -343,6 +343,13 @@
}
};

p.getDel = function (key) {
var newValue = p.get(key);
p.del(key);
this.emit('getdel ' + key, newValue);
this.emit('getdel', key, newValue);
}

p.gettime = function() {

var newValue;
Expand Down

0 comments on commit 547aa5c

Please sign in to comment.