From dd99cac73f34d36d22f5f3fe1af6ef8f48055b34 Mon Sep 17 00:00:00 2001 From: Leif Åstrand Date: Mon, 2 Jan 2012 14:26:39 +0200 Subject: #8190 Recorder no longer waits for Vaadin application to load --- WebContent/VAADIN/vaadinBootstrap.js | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'WebContent/VAADIN/vaadinBootstrap.js') diff --git a/WebContent/VAADIN/vaadinBootstrap.js b/WebContent/VAADIN/vaadinBootstrap.js index f8eedb8fd1..6adcb86c99 100644 --- a/WebContent/VAADIN/vaadinBootstrap.js +++ b/WebContent/VAADIN/vaadinBootstrap.js @@ -72,6 +72,14 @@ throw "Application " + appId + " already initialized"; } log("init application", appId, config); + + var testbenchId = appId.replace(/-\d+$/, ''); + window.vaadin.clients[testbenchId] = { + isActive: function() { + return true; + } + } + var getConfig = function(name) { var value = config[name]; if (value === undefined) { @@ -176,6 +184,7 @@ return app; }, + clients: {}, getApp: function(appId) { var app = apps[appId]; return app; -- cgit v1.2.3