[PATCH] Remove JavaScript greeting exception

Wald Commits scm-commit at wald.intevation.org
Fri Mar 27 19:10:12 CET 2015


# HG changeset patch
# User Andre Heinecke <andre.heinecke at intevation.de>
# Date 1427479802 -3600
# Node ID c15cebcf60daebff92cd1398b89a61f8bba6a7d3
# Parent  999b9ab16738c17e2e7b80da9e88d3becbc23a8d
Remove JavaScript greeting exception.

    This fixes the Error "$wnd.unHighlight" is not a function
    exception at startup. This apperantly did not do anything
    (as the function does not exist) and was not necessary
    (as everything works as expected) So just throw it away.

diff -r 999b9ab16738 -r c15cebcf60da gwt-client/src/main/java/org/dive4elements/river/client/client/ui/LinkSelection.java
--- a/gwt-client/src/main/java/org/dive4elements/river/client/client/ui/LinkSelection.java	Fri Mar 27 18:59:27 2015 +0100
+++ b/gwt-client/src/main/java/org/dive4elements/river/client/client/ui/LinkSelection.java	Fri Mar 27 19:10:02 2015 +0100
@@ -243,7 +243,6 @@
                             item.setVisible(true);
                             if (selected != null && !selected.equals(river)) {
                                 riverHighlight.get(selected).setVisible(false);
-                                callUnHighlightRiver(selected);
                             }
                             callHighlightRiver(river);
                             selected = river;
@@ -322,16 +321,11 @@
         $wnd.highlight(name);
     }-*/;
 
-    private native void callUnHighlightRiver(String name) /*-{
-        $wnd.unHighlight(name);
-    }-*/;
-
 
     @Override
     public void onVisibilityChanged(VisibilityChangedEvent event) {
         for (Map.Entry<String, Img> entry: riverHighlight.entrySet()) {
             entry.getValue().setVisible(false);
-            callUnHighlightRiver(entry.getKey());
         }
         selected = null;
     }


More information about the Dive4Elements-commits mailing list