|
@@ -1449,7 +1449,7 @@ let generate com =
|
|
List.iter chk_features ctx.inits;
|
|
List.iter chk_features ctx.inits;
|
|
List.iter (fun (_,_,e) -> chk_features e) ctx.statics;
|
|
List.iter (fun (_,_,e) -> chk_features e) ctx.statics;
|
|
if has_feature ctx "use._iterator" then begin
|
|
if has_feature ctx "use._iterator" then begin
|
|
- add_feature ctx "use._bind";
|
|
|
|
|
|
+ (* add_feature ctx "use._bind"; *)
|
|
print ctx "function _iterator(o) { if( o instanceof Array ) return function() { return HxOverrides.iter(o); }; return typeof(o.iterator) == 'function' ? _bind(o,o.iterator) : o.iterator; }";
|
|
print ctx "function _iterator(o) { if( o instanceof Array ) return function() { return HxOverrides.iter(o); }; return typeof(o.iterator) == 'function' ? _bind(o,o.iterator) : o.iterator; }";
|
|
newline ctx;
|
|
newline ctx;
|
|
end;
|
|
end;
|