New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

new jQuery extern #4377

Closed
andyli opened this Issue Jul 2, 2015 · 5 comments

Comments

Projects
None yet
3 participants
@andyli
Member

andyli commented Jul 2, 2015

I've just added a new set of jQuery extern. Compared to the old extern, which is incomplete and made for an old jQuery version (1.6.4), the new extern is complete and up-to-date.

The new extern is located in the new js.jquery package. The old extern has not been removed (but will be deprecated soon), so existing code base will still work. To use the new extern, consult the comparison table as follows:

old extern new extern
jQuery API version partial 1.6.4 complete 1.12.2 / 2.2.2
jQuery reference in output js.JQuery $
embedding jQuery in output use -D embed-js (removed in haxe 3.3) use haxe.macro.Compiler.includeFile
import statement import js.JQuery; import js.jquery.*;
jQuery.Event js.JQuery.JqEvent js.jquery.Event
haxe helper js.JQuery.JQueryHelper js.jquery.Helper
is JQuery iterable? yes, Iterable<JQuery> yes, Iterable<Element>

For jQueryExtern users: You're encouraged to switch to this new std extern, if you're not using any of the advanced functionalities, which will be reimplemented to work for the new std extern. The jQueryExtern lib will eventually become a drop-in replacement to the new std extern with the advanced functionalities. However, I haven't started the work on this end yet.

Documentation in the manual and more tests will be added once the extern is finalized.

Any feedback is much appreciated!

@andyli

This comment has been minimized.

Member

andyli commented Jul 30, 2015

@kevinresol

This comment has been minimized.

Contributor

kevinresol commented Jan 5, 2016

Is this available in haxe 3.2.1?

@andyli

This comment has been minimized.

Member

andyli commented Jan 6, 2016

Nop. It will be in 3.3 if there is no sudden change.

@Simn Simn modified the milestone: 3.3.0-rc1 Feb 23, 2016

@Simn

This comment has been minimized.

Member

Simn commented Apr 4, 2016

Can this be closed?

@andyli

This comment has been minimized.

Member

andyli commented Apr 4, 2016

I think so.

@andyli andyli closed this Apr 4, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment