From 4bc081e2f23d3573561a659e27afb4c7cf26fc0e Mon Sep 17 00:00:00 2001 From: loudoweb Date: Sat, 1 Feb 2020 16:01:25 +0100 Subject: [PATCH] Use single instance of easing method for Linear Use single instance of easing method for Linear (other easing methods already changed 2 years ago) --- src/motion/easing/Linear.hx | 23 ++--------------------- 1 file changed, 2 insertions(+), 21 deletions(-) diff --git a/src/motion/easing/Linear.hx b/src/motion/easing/Linear.hx index 9da145e..3f393a8 100644 --- a/src/motion/easing/Linear.hx +++ b/src/motion/easing/Linear.hx @@ -10,26 +10,7 @@ package motion.easing; class Linear { - - static public var easeNone (get, never):IEasing; - - - #if commonjs - private static function __init__ () { - - untyped Object.defineProperties (Linear, { - "easeNone": { get: function () { return Linear.get_easeNone (); } } - }); - - } - #end - - - private static function get_easeNone ():IEasing { - - return new LinearEaseNone (); - - } + public static var easeNone (default, null):IEasing = new LinearEaseNone (); } @@ -59,4 +40,4 @@ class LinearEaseNone implements IEasing { } -} \ No newline at end of file +}