|
@@ -346,7 +346,8 @@ extern class JQuery implements ArrayAccess<Dom.HtmlDom> {
|
|
|
|
|
|
private static function __init__() : Void untyped {
|
|
private static function __init__() : Void untyped {
|
|
#if !noEmbedJS
|
|
#if !noEmbedJS
|
|
- haxe.macro.Tools.includeFile("js/jquery-latest.min.js");
|
|
|
|
|
|
+ if( untyped __js__("typeof($) == 'undefined'") )
|
|
|
|
+ haxe.macro.Tools.includeFile("js/jquery-latest.min.js");
|
|
#end
|
|
#end
|
|
var q : Dynamic = window.jQuery;
|
|
var q : Dynamic = window.jQuery;
|
|
js.JQuery = q;
|
|
js.JQuery = q;
|