From e829d2df2510057fdb39774da826edf4fda7c1b4 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Leif=20=C3=85strand?= Date: Thu, 21 Feb 2013 11:14:31 +0200 Subject: [PATCH] Don't report time spent in getWidget() as part of setConnectorId() Change-Id: I1e6953f55836fc832dcd2a02eea60422daaf5c7d --- client/src/com/vaadin/client/ConnectorMap.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/client/src/com/vaadin/client/ConnectorMap.java b/client/src/com/vaadin/client/ConnectorMap.java index 5f6053dd32..810f12824a 100644 --- a/client/src/com/vaadin/client/ConnectorMap.java +++ b/client/src/com/vaadin/client/ConnectorMap.java @@ -126,8 +126,9 @@ public class ConnectorMap { componentDetail.setConnector(connector); if (connector instanceof ComponentConnector) { ComponentConnector pw = (ComponentConnector) connector; + Widget widget = pw.getWidget(); Profiler.enter("ConnectorMap.setConnectorId"); - setConnectorId(pw.getWidget().getElement(), id); + setConnectorId(widget.getElement(), id); Profiler.leave("ConnectorMap.setConnectorId"); } Profiler.leave("ConnectorMap.registerConnector"); -- 2.39.5