Try auto-init again
This commit is contained in:
@@ -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");
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user