Try auto-init again

This commit is contained in:
Joshua Granick
2016-09-07 14:56:10 -07:00
parent 83ac4fa432
commit 5e3bbf4772

View File

@@ -18,14 +18,11 @@ abstract Locale(String) from String to String {
public var region (get, never):String;
private static function __init__ ():Void { __init (); }
private static function __init ():Void {
trace ("1");
var locale = null;
trace ("2");
#if flash
locale = Capabilities.language;
#elseif (js && html5)
@@ -35,8 +32,6 @@ abstract Locale(String) from String to String {
locale = lime_locale_get_system_locale ();
#end
trace ("3");
if (locale != null) {
systemLocale = locale;
@@ -47,12 +42,8 @@ abstract Locale(String) from String to String {
}
trace ("4");
currentLocale = systemLocale;
trace ("5");
}