Added a native log() that writes to the browser 's console for debugging
authorChristos Stathis <chstath@ebs.gr>
Thu, 2 Feb 2012 14:48:11 +0000 (16:48 +0200)
committerChristos Stathis <chstath@ebs.gr>
Thu, 2 Feb 2012 14:48:11 +0000 (16:48 +0200)
src/gr/grnet/pithos/web/client/Pithos.java

index 8207940..50b0f48 100644 (file)
@@ -1194,6 +1194,10 @@ public class Pithos implements EntryPoint, ResizeHandler {
                                Cookies.removeCookie(s, "/");
                Window.Location.assign(config.logoutUrl());
        }
+       
+       public native void log1(String message)/*-{
+               $wnd.console.log(message);
+       }-*/;
 
        public String getErrorData() {
                if (error != null)