summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArtur Signell <artur@vaadin.com>2013-03-07 10:33:01 +0200
committerArtur Signell <artur@vaadin.com>2013-03-07 10:39:27 +0200
commit611a4980e84fa90066bc46c39889d6de9675390b (patch)
tree85095aec0d29248b8c45e3f4f1108c4f862c0494
parent4388798f036f01a3dc12cf77f37b21380b6fb3a5 (diff)
downloadvaadin-framework-7.0.2.tar.gz
vaadin-framework-7.0.2.zip
Set to empty function instead of undefined (#10960)7.0.2
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
-rw-r--r--client/src/com/vaadin/client/Profiler.java4
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(){};
}
}
}-*/;