diff options
author | Artur Signell <artur@vaadin.com> | 2013-03-07 10:33:01 +0200 |
---|---|---|
committer | Artur Signell <artur@vaadin.com> | 2013-03-07 10:34:56 +0200 |
commit | 6c3224ea3846c00efa621abd8134438bc9790837 (patch) | |
tree | 85095aec0d29248b8c45e3f4f1108c4f862c0494 /client | |
parent | e49ccb5ead9f3e13fc96b9401ce7008f743b48ec (diff) | |
download | vaadin-framework-6c3224ea3846c00efa621abd8134438bc9790837.tar.gz vaadin-framework-6c3224ea3846c00efa621abd8134438bc9790837.zip |
Set to empty function instead of undefined (#10960)
It seems that the presence of the function is checked once while it is still set and it will be later called without additional checks that it is still set.
Change-Id: Ie985d9047f4d2ca469f1a406ba40bca0ac3a59e9
Diffstat (limited to 'client')
-rw-r--r-- | client/src/com/vaadin/client/Profiler.java | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/client/src/com/vaadin/client/Profiler.java b/client/src/com/vaadin/client/Profiler.java index 6230828281..6e8f2f5f9a 100644 --- a/client/src/com/vaadin/client/Profiler.java +++ b/client/src/com/vaadin/client/Profiler.java @@ -532,9 +532,7 @@ public class Profiler { if (typeof $wnd.vaadin.gwtStatsEvents == 'object') { delete $wnd.vaadin.gwtStatsEvents; if (typeof $wnd.__gwtStatsEvent == 'function') { - // IE8 refuses to delete window properties - $wnd.__gwtStatsEvent = undefined; - try { delete $wnd.__gwtStatsEvent;} catch (e) {} + $wnd.__gwtStatsEvent = function(){}; } } }-*/; |