aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorManuel Carrasco Moñino <manuel.carrasco.m@gmail.com>2013-12-05 18:19:43 +0100
committerManuel Carrasco Moñino <manuel.carrasco.m@gmail.com>2013-12-05 18:19:43 +0100
commit8e7e147abfcdc5e3c177be377ff0ac53acf95674 (patch)
treef3103ebd5b4e408008ea8a39b6c0399bc0ff2b18
parent1d41c7399d8df35d0d16e07eeb44ea832f87f67c (diff)
downloadgwtquery-8e7e147abfcdc5e3c177be377ff0ac53acf95674.tar.gz
gwtquery-8e7e147abfcdc5e3c177be377ff0ac53acf95674.zip
Adding missing method in console
-rw-r--r--gwtquery-core/src/main/java/com/google/gwt/query/client/Console.java5
-rw-r--r--gwtquery-core/src/main/java/com/google/gwt/query/client/impl/ConsoleBrowser.java11
2 files changed, 15 insertions, 1 deletions
diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/Console.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/Console.java
index 66709908..52c71d35 100644
--- a/gwtquery-core/src/main/java/com/google/gwt/query/client/Console.java
+++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/Console.java
@@ -22,6 +22,11 @@ package com.google.gwt.query.client;
public interface Console {
/**
+ * Clears the console.
+ */
+ void clear();
+
+ /**
* Displays an interactive listing of the properties of a specified JavaScript object. This
* listing lets you use disclosure triangles to examine the contents of child objects.
*/
diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/impl/ConsoleBrowser.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/impl/ConsoleBrowser.java
index 6f67fd95..ec63c852 100644
--- a/gwtquery-core/src/main/java/com/google/gwt/query/client/impl/ConsoleBrowser.java
+++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/impl/ConsoleBrowser.java
@@ -68,6 +68,10 @@ public class ConsoleBrowser implements Console {
* Default implementation: webkit, opera, FF, ie10
*/
private static class ConsoleImpl {
+ public native void clear() /*-{
+ $wnd.console.clear();
+ }-*/;
+
public native void dir(Object arg) /*-{
$wnd.console.dir(arg);
}-*/;
@@ -126,7 +130,12 @@ public class ConsoleBrowser implements Console {
public ConsoleBrowser() {
impl = GQuery.browser.ie8? new ConsoleIe8(): GQuery.browser.ie9? new ConsoleIe9(): new ConsoleImpl();
}
-
+
+ @Override
+ public void clear() {
+ impl.clear();
+ }
+
@Override
public void dir(Object arg) {
impl.dir(toJs(arg));