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

This commit is contained in:
Kris Maglione committed 2008-09-11 03:20:49 +00:00
1 parent 86b9415ad9
commit 23741d8d50
1 file changed
+1 -1
+1 -1
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;
};