Permalink
Browse files

unset rows[row.key] so rows can be re-inserted later after being removed

  • Loading branch information...
substack committed Aug 9, 2012
1 parent 928a992 commit ea822cac4c252d3945e01446ce7e74dff16198d6
Showing with 2 additions and 1 deletion.
  1. +1 −0 index.js
  2. +1 −1 package.json
View
@@ -57,6 +57,7 @@ Sorta.prototype.write = function (row) {
if (row.value === undefined) {
if (r) {
self.emit('remove', rows[row.key]);
+ rows[row.key] = undefined;
var nodes = self.element.childNodes;
for (var i = r.index; i < nodes.length; i++) {
View
@@ -1,6 +1,6 @@
{
"name" : "sorta",
- "version" : "0.0.3",
+ "version" : "0.0.4",
"description" : "preserve the ordering of html elements in the browser as updates stream in",
"main" : "index.js",
"directories" : {

0 comments on commit ea822ca

Please sign in to comment.