From 76a5f17cc02fbb8185d1c16e046b33a7a7eb640c Mon Sep 17 00:00:00 2001 From: Daniel Freedman Date: Wed, 23 Sep 2015 21:27:29 -0700 Subject: [PATCH] Reset handlers queue after finished replaying events Holding on to an array of CustomEvents can leak memory across page refreshes in Chrome: https://crbug.com/529941 Fixes #2452 --- src/standard/configure.html | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/standard/configure.html b/src/standard/configure.html index 1495189751..70d506fc78 100644 --- a/src/standard/configure.html +++ b/src/standard/configure.html @@ -49,7 +49,7 @@ // don't accept undefined values in intialConfig for (var i in initialConfig) { if (initialConfig[i] !== undefined) { - this._config[i] = initialConfig[i]; + this._config[i] = initialConfig[i]; } } this._handlers = []; @@ -190,8 +190,14 @@ for (var i=0, l=h$.length, h; (i \ No newline at end of file +