summaryrefslogtreecommitdiffstats
path: root/client/src/com/vaadin
diff options
context:
space:
mode:
authorArtur Signell <artur@vaadin.com>2013-03-06 18:31:57 +0200
committerArtur Signell <artur@vaadin.com>2013-03-06 18:49:25 +0200
commite49ccb5ead9f3e13fc96b9401ce7008f743b48ec (patch)
tree6ec3201e9eaea3724c2055ca927facc86ccf6855 /client/src/com/vaadin
parenteffe571067d7d238397b464aa367f6425a2ab2bf (diff)
downloadvaadin-framework-e49ccb5ead9f3e13fc96b9401ce7008f743b48ec.tar.gz
vaadin-framework-e49ccb5ead9f3e13fc96b9401ce7008f743b48ec.zip
Fixed javascript issue in IE8 (delete cannot be used on window properties) (#10960)
Change-Id: I03bb7e7dda8a44d06dffd3a077cb9b8acc45741d
Diffstat (limited to 'client/src/com/vaadin')
-rw-r--r--client/src/com/vaadin/client/Profiler.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/client/src/com/vaadin/client/Profiler.java b/client/src/com/vaadin/client/Profiler.java
index bbfdc981d1..6230828281 100644
--- a/client/src/com/vaadin/client/Profiler.java
+++ b/client/src/com/vaadin/client/Profiler.java
@@ -532,7 +532,9 @@ public class Profiler {
if (typeof $wnd.vaadin.gwtStatsEvents == 'object') {
delete $wnd.vaadin.gwtStatsEvents;
if (typeof $wnd.__gwtStatsEvent == 'function') {
- delete $wnd.__gwtStatsEvent;
+ // IE8 refuses to delete window properties
+ $wnd.__gwtStatsEvent = undefined;
+ try { delete $wnd.__gwtStatsEvent;} catch (e) {}
}
}
}-*/;