vibornoff: fix stopCollectors

This commit is contained in:
Mike Hamburg 2011-06-14 16:36:39 -07:00
parent 117fce4fa2
commit 291414a86c

View file

@ -193,8 +193,8 @@ sjcl.random = {
if (!this._collectorsStarted) { return; }
if (window.removeEventListener) {
window.removeEventListener("load", this._loadTimeCollector);
window.removeEventListener("mousemove", this._mouseCollector);
window.removeEventListener("load", this._loadTimeCollector, false);
window.removeEventListener("mousemove", this._mouseCollector, false);
} else if (window.detachEvent) {
window.detachEvent("onload", this._loadTimeCollector);
window.detachEvent("onmousemove", this._mouseCollector);