From 2009570e936eb6888cde30f702035e3954de2711 Mon Sep 17 00:00:00 2001 From: Manolo Carrasco Date: Sun, 18 Jul 2010 08:20:02 +0000 Subject: [PATCH] removed unnecessary method --- .../com/google/gwt/query/client/GQuery.java | 12 ++--- .../google/gwt/query/client/LazyGQuery.java | 54 ++++++++++--------- 2 files changed, 32 insertions(+), 34 deletions(-) diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/GQuery.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/GQuery.java index 49a15b90..16fd62f8 100644 --- a/gwtquery-core/src/main/java/com/google/gwt/query/client/GQuery.java +++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/GQuery.java @@ -511,7 +511,7 @@ public class GQuery implements Lazy { * another if it's not in the page). */ public GQuery after(String html) { - return domManip(html, document, FUNC_AFTER); + return domManip(html, FUNC_AFTER); } /** @@ -547,7 +547,7 @@ public class GQuery implements Lazy { * into the document. */ public GQuery append(String html) { - return domManip(html, document, FUNC_APPEND); + return domManip(html, FUNC_APPEND); } /** @@ -671,7 +671,7 @@ public class GQuery implements Lazy { * another if it's not in the page). */ public GQuery before(String html) { - return domManip(html, document, FUNC_BEFORE); + return domManip(html, FUNC_BEFORE); } /** @@ -1610,7 +1610,7 @@ public class GQuery implements Lazy { * elements. */ public GQuery prepend(String html) { - return domManip(html, document, FUNC_PREPEND); + return domManip(html, FUNC_PREPEND); } /** @@ -2491,10 +2491,6 @@ public class GQuery implements Lazy { return this; } - private GQuery domManip(String html, Document doc, int func) { - return domManip(html, func); - } - private GQuery domManip(String htmlString, int func) { GQuery ret = $(); HashMap cache = new HashMap(); diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/LazyGQuery.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/LazyGQuery.java index 8eaf3289..ed984434 100644 --- a/gwtquery-core/src/main/java/com/google/gwt/query/client/LazyGQuery.java +++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/LazyGQuery.java @@ -111,27 +111,27 @@ public interface LazyGQuery extends LazyBase{ LazyGQuery append(String html); /** - * All of the matched set of elements will be inserted at the end + * All of the matched set of elements will be inserted at the end * of the element(s) specified by the parameter other. - * + * * The operation $(A).appendTo(B) is, essentially, the reverse of doing a regular * $(A).append(B), instead of appending B to A, you're appending A to B. */ LazyGQuery appendTo(GQuery other); /** - * All of the matched set of elements will be inserted at the end + * All of the matched set of elements will be inserted at the end * of the element(s) specified by the parameter other. - * + * * The operation $(A).appendTo(B) is, essentially, the reverse of doing a regular * $(A).append(B), instead of appending B to A, you're appending A to B. */ LazyGQuery appendTo(Node n); /** - * All of the matched set of elements will be inserted at the end + * All of the matched set of elements will be inserted at the end * of the element(s) specified by the parameter other. - * + * * The operation $(A).appendTo(B) is, essentially, the reverse of doing a regular * $(A).append(B), instead of appending B to A, you're appending A to B. */ @@ -190,14 +190,14 @@ public interface LazyGQuery extends LazyBase{ /** * Binds a set of handlers to a particular Event for each matched element. - * + * * The event handlers are passed as Functions that you can use to prevent * default behavior. To stop both default action and event bubbling, the * function event handler has to return false. - * + * * You can pass an additional Object data to your Function as the second * parameter - * + * */ LazyGQuery bind(int eventbits, Object data, Function...funcs); @@ -234,13 +234,13 @@ public interface LazyGQuery extends LazyBase{ LazyGQuery click(Function...f); /** - * Returns the inner height of the first matched element, including padding + * Returns the inner height of the first matched element, including padding * but not the vertical scrollbar height, border, or margin. */ int clientHeight(); /** - * Returns the inner width of the first matched element, including padding + * Returns the inner width of the first matched element, including padding * but not the vertical scrollbar width, border, or margin. */ int clientWidth(); @@ -279,15 +279,15 @@ public interface LazyGQuery extends LazyBase{ /** * Return a style property on the first matched element. - * + * * The parameter force has a special meaning here: * - When force is false, returns the value of the css property defined - * in the style attribute of the element. + * in the style attribute of the element. * - Otherwise it returns the real computed value. - * + * * For instance if you define 'display=none' not in the element style * but in the css stylesheet, it returns an empty string unless you - * pass the parameter force=true. + * pass the parameter force=true. */ String css(String name, boolean force); @@ -351,6 +351,8 @@ public interface LazyGQuery extends LazyBase{ /** * Remove all child nodes from the set of matched elements. + * In the case of a document element, it removes all the content. + * want to add dynamic content to it. */ LazyGQuery empty(); @@ -766,27 +768,27 @@ public interface LazyGQuery extends LazyBase{ LazyGQuery prepend(String html); /** - * All of the matched set of elements will be inserted at the beginning + * All of the matched set of elements will be inserted at the beginning * of the element(s) specified by the parameter other. - * + * * The operation $(A).prependTo(B) is, essentially, the reverse of doing a regular * $(A).prepend(B), instead of prepending B to A, you're prepending A to B. */ LazyGQuery prependTo(GQuery other); /** - * All of the matched set of elements will be inserted at the beginning + * All of the matched set of elements will be inserted at the beginning * of the element(s) specified by the parameter other. - * + * * The operation $(A).prependTo(B) is, essentially, the reverse of doing a regular * $(A).prepend(B), instead of prepending B to A, you're prepending A to B. */ LazyGQuery prependTo(Node n); /** - * All of the matched set of elements will be inserted at the beginning + * All of the matched set of elements will be inserted at the beginning * of the element(s) specified by the parameter other. - * + * * The operation $(A).prependTo(B) is, essentially, the reverse of doing a regular * $(A).prepend(B), instead of prepending B to A, you're prepending A to B. */ @@ -1001,7 +1003,7 @@ public interface LazyGQuery extends LazyBase{ /** * Adds or removes the specified classes to each matched element * depending on the value of the switch argument. - * + * * false it is removed. */ LazyGQuery toggleClass(String clz, boolean addOrRemove); @@ -1023,10 +1025,10 @@ public interface LazyGQuery extends LazyBase{ /** * Trigger a set of events on each matched element. - * - * For keyboard events you can pass a second parameter which represents - * the key-code of the pushed key. - * + * + * For keyboard events you can pass a second parameter which represents + * the key-code of the pushed key. + * * Example: fire(Event.ONCLICK | Event.ONFOCUS) * Example: fire(Event.ONKEYDOWN. 'a'); */ -- 2.39.5