From 951addec2aabb29006579cb40ec31cdab4507ce2 Mon Sep 17 00:00:00 2001 From: Joshua Granick Date: Sat, 14 May 2016 10:48:09 -0700 Subject: [PATCH] Improve behavior of onPreloadComplete --- lime/app/Application.hx | 8 ++------ lime/app/Module.hx | 6 ------ 2 files changed, 2 insertions(+), 12 deletions(-) diff --git a/lime/app/Application.hx b/lime/app/Application.hx index 030069506..439b6fb25 100644 --- a/lime/app/Application.hx +++ b/lime/app/Application.hx @@ -75,12 +75,6 @@ class Application extends Module { module.registerModule (this); modules.push (module); - if (preloader != null) { - - module.setPreloader (preloader); - - } - if (__renderers.length > 0) { for (renderer in __renderers) { @@ -101,6 +95,8 @@ class Application extends Module { } + module.setPreloader (preloader); + } diff --git a/lime/app/Module.hx b/lime/app/Module.hx index 0b07bdbd7..6f143b930 100644 --- a/lime/app/Module.hx +++ b/lime/app/Module.hx @@ -79,12 +79,6 @@ class Module implements IModule { } - if (__application.preloader == null || __application.preloader.complete) { - - onPreloadComplete (); - - } - __windows.push (window); }