Sync files

This commit is contained in:
Joshua Granick
2015-05-12 12:30:34 -07:00
parent 99209ac51b
commit ca97897f39
5 changed files with 62 additions and 54 deletions

View File

@@ -246,12 +246,9 @@ class Boot {
return __nativeClassName(o) != null;
}
// resolve native JS class (with window or global):
// resolve native JS class in the global scope:
static function __resolveNativeClass(name:String) untyped {
if (__js__("typeof window") != "undefined")
return window[name];
else
return global[name];
return untyped Function('return typeof $name != "undefined" ? $name : null')();
}
}