You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.
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!
The text was updated successfully, but these errors were encountered:
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:js.JQuery
$
-D embed-js
(removed in haxe 3.3)haxe.macro.Compiler.includeFile
import js.JQuery;
import js.jquery.*;
js.JQuery.JqEvent
js.jquery.Event
js.JQuery.JQueryHelper
js.jquery.Helper
Iterable<JQuery>
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!
The text was updated successfully, but these errors were encountered: