Comparison

core/modulemanager.lua @ 4665:6be91ca54613

modulemanager: Set module.loaded = false on unload
author Matthew Wild <mwild1@gmail.com>
date Mon, 23 Apr 2012 15:38:36 +0100
parent 4662:105423f77d46
child 4728:7c81b04a4fed
comparison
equal deleted inserted replaced
4664:7438b3c68576 4665:6be91ca54613
108 t[i] = nil; 108 t[i] = nil;
109 events.fire_event("item-removed/"..key, {source = mod.module, item = value}); 109 events.fire_event("item-removed/"..key, {source = mod.module, item = value});
110 end 110 end
111 end 111 end
112 end 112 end
113 mod.module.loaded = false;
113 modulemap[host][name] = nil; 114 modulemap[host][name] = nil;
114 return true; 115 return true;
115 end 116 end
116 117
117 local function do_load_module(host, module_name) 118 local function do_load_module(host, module_name)