1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-03 16:24:12 +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)
array.splice(0, array.length - length);
array.length = length;
this.fireEvent("truncate", length);
}
this.fireEvent("truncate", length);
return ret;
};