1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-03-17 23:13:33 +01:00

Only fire truncate event from storage module if array is actually truncated.

This commit is contained in:
Kris Maglione
2008-09-11 03:20:49 +00:00
parent 86b9415ad9
commit 23741d8d50

View File

@@ -151,8 +151,8 @@ function ArrayStore(name, store)
if(fromEnd) if(fromEnd)
array.splice(0, array.length - length); array.splice(0, array.length - length);
array.length = length; array.length = length;
}
this.fireEvent("truncate", length); this.fireEvent("truncate", length);
}
return ret; return ret;
}; };