Hello, I know that is not currently possible to overload a js native interface like this but I wonder why. Is there a technical reason that can be overcome or is it a conceptual issued that I just don't get?
@JsType(isNative = true) > public class JQuery { > @JsType(isNative = true) > public interface Element { > } > > @JsMethod(namespace = JsPackage.GLOBAL) > public static native <T extends JQuerySelection> T $(String selector); > // This won't work because $() is alredy declared > @JsMethod(namespace = JsPackage.GLOBAL) > public static native <T extends JQuerySelection> T $(Element element); > > // you have to do this instead. Notice $E( instead of plain $( > @JsMethod(name = "$", namespace = JsPackage.GLOBAL) > public static native <T extends JQuerySelection> T $E(Element element); > } > > -- Vassilis Virvilis -- You received this message because you are subscribed to the Google Groups "GWT Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at https://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/d/optout.