more refactoring

This commit is contained in:
Manuel Simon Hirsig
2016-08-19 17:44:19 +02:00
parent fc91332865
commit 012ccfb21d
14 changed files with 168 additions and 194 deletions
+3 -2
View File
@@ -1,4 +1,5 @@
setglobal('aux', aux_module('core'))
import 'util'
public.version = '4.0.0'
@@ -40,8 +41,8 @@ event_frame:SetScript('OnEvent', function()
m[event]()
if event == 'VARIABLES_LOADED' then
for _, env in module_envs do
if env.m.LOAD then
env.m.LOAD()
if env.LOAD then
env.LOAD()
end
end
log('v'..version..' loaded.')