|
@@ -824,7 +824,7 @@ let generate com =
|
|
|
| Some g -> g()
|
|
|
| None ->
|
|
|
let ctx = alloc_ctx com in
|
|
|
- print ctx "var $_, $hxClasses = {}, $estr = function() { return js.Boot.__string_rec(this,''); }
|
|
|
+ print ctx "var $_, $hxClasses = $hxClasses || {}, $estr = function() { return js.Boot.__string_rec(this,''); }
|
|
|
function $extend(from, fields) {
|
|
|
function inherit() {}; inherit.prototype = from; var proto = new inherit();
|
|
|
for (var name in fields) proto[name] = fields[name];
|