From 5e3bbf4772fa4f8fbf00208285c0e476ce10503e Mon Sep 17 00:00:00 2001 From: Joshua Granick Date: Wed, 7 Sep 2016 14:56:10 -0700 Subject: [PATCH] Try auto-init again --- lime/system/Locale.hx | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/lime/system/Locale.hx b/lime/system/Locale.hx index 811fba51d..a1ecc1f2b 100644 --- a/lime/system/Locale.hx +++ b/lime/system/Locale.hx @@ -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"); - }