From 23741d8d5010dc7a4d37184cd276b70aa610fdf0 Mon Sep 17 00:00:00 2001 From: Kris Maglione Date: Thu, 11 Sep 2008 03:20:49 +0000 Subject: [PATCH] Only fire truncate event from storage module if array is actually truncated. --- content/storage.jsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/storage.jsi b/content/storage.jsi index eed6efa7..46e6edc5 100644 --- a/content/storage.jsi +++ b/content/storage.jsi @@ -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; };