diff options
Diffstat (limited to 'client')
-rw-r--r-- | client/src/com/vaadin/client/ui/VCustomLayout.java | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/client/src/com/vaadin/client/ui/VCustomLayout.java b/client/src/com/vaadin/client/ui/VCustomLayout.java index f9caceb668..3b2b007b5b 100644 --- a/client/src/com/vaadin/client/ui/VCustomLayout.java +++ b/client/src/com/vaadin/client/ui/VCustomLayout.java @@ -208,12 +208,10 @@ public class VCustomLayout extends ComplexPanel { /** Collect locations from template */ private void scanForLocations(Element elem) { - - final String location = elem.getAttribute("location"); - if (!"".equals(location)) { + if (elem.hasAttribute("location")) { + final String location = elem.getAttribute("location"); locationToElement.put(location, elem); elem.setInnerHTML(""); - } else { final int len = DOM.getChildCount(elem); for (int i = 0; i < len; i++) { |