From 531c7873e79dd89be9189b49500ecbc72b7e5c90 Mon Sep 17 00:00:00 2001
From: Leif Åstrand
Date: Wed, 13 Mar 2013 10:12:32 +0200
Subject: Updated supported browser versions in release notes (#10887)
Based on svn changeset:25626/svn branch:6.8
Change-Id: I76333c1af0eab1d727a03dcd82ae6b9b7187e58a
---
WebContent/release-notes.html | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
(limited to 'WebContent')
diff --git a/WebContent/release-notes.html b/WebContent/release-notes.html
index 39b6652532..0f49e819b0 100644
--- a/WebContent/release-notes.html
+++ b/WebContent/release-notes.html
@@ -658,12 +658,12 @@
- - Mozilla Firefox 18
+ - Mozilla Firefox 18-19
- Mozilla Firefox 17 ESR
- Internet Explorer 8-10
- Safari 6
- Opera 12
- - Google Chrome 23
+ - Google Chrome 23-25
--
cgit v1.2.3
From e4c9eda51082a443822b66864df2fe14be7dc6d7 Mon Sep 17 00:00:00 2001
From: Artur Signell
Date: Mon, 18 Mar 2013 21:34:27 +0200
Subject: Enable a Vaadin applications to be re-initialized if if has been
re-added to the same page (#8350)
Change-Id: I30dbc14f00108fa699694ecd1d37679d8a0dff4b
---
WebContent/VAADIN/vaadinBootstrap.js | 34 +++++++++++++++++++---
.../com/vaadin/client/ApplicationConnection.java | 1 +
2 files changed, 31 insertions(+), 4 deletions(-)
(limited to 'WebContent')
diff --git a/WebContent/VAADIN/vaadinBootstrap.js b/WebContent/VAADIN/vaadinBootstrap.js
index 9e012ae987..81adfcccc6 100644
--- a/WebContent/VAADIN/vaadinBootstrap.js
+++ b/WebContent/VAADIN/vaadinBootstrap.js
@@ -55,19 +55,45 @@
pendingApps: []
};
};
-
+
+ var isInitializedInDom = function(appId) {
+ var appDiv = document.getElementById(appId);
+ if (!appDiv) {
+ return false;
+ }
+ for ( var i = 0; i < appDiv.childElementCount; i++) {
+ var className = appDiv.childNodes[i].className;
+ // If the app div contains a child with the class
+ // "v-app-loading" we have only received the HTML
+ // but not yet started the widget set
+ // (UIConnector removes the v-app-loading div).
+ if (className && className.contains("v-app-loading")) {
+ return false;
+ }
+ }
+ return true;
+ };
+
window.vaadin = window.vaadin || {
initApplication: function(appId, config) {
+ var testbenchId = appId.replace(/-\d+$/, '');
+
if (apps[appId]) {
- throw "Application " + appId + " already initialized";
+ if (window.vaadin && window.vaadin.clients && window.vaadin.clients[testbenchId] && window.vaadin.clients[testbenchId].initializing) {
+ throw "Application " + appId + " is already being initialized";
+ }
+ if (isInitializedInDom(appId)) {
+ throw "Application " + appId + " already initialized";
+ }
}
+
log("init application", appId, config);
- var testbenchId = appId.replace(/-\d+$/, '');
window.vaadin.clients[testbenchId] = {
isActive: function() {
return true;
- }
+ },
+ initializing: true
};
var getConfig = function(name) {
diff --git a/client/src/com/vaadin/client/ApplicationConnection.java b/client/src/com/vaadin/client/ApplicationConnection.java
index 62827feffb..4ddbd7c39b 100644
--- a/client/src/com/vaadin/client/ApplicationConnection.java
+++ b/client/src/com/vaadin/client/ApplicationConnection.java
@@ -510,6 +510,7 @@ public class ApplicationConnection {
client.getPathForElement = $entry(function(element) {
return componentLocator.@com.vaadin.client.ComponentLocator::getPathForElement(Lcom/google/gwt/user/client/Element;)(element);
});
+ client.initializing = false;
$wnd.vaadin.clients[TTAppId] = client;
}-*/;
--
cgit v1.2.3