1
0
Fork 0

Merge remote-tracking branch 'origin/1.2' into devel

This commit is contained in:
Frank Celler 2013-01-23 15:46:15 +01:00
commit d10f4b2194
1 changed files with 8 additions and 1 deletions

View File

@ -394,13 +394,20 @@ function stop_color_print () {
////////////////////////////////////////////////////////////////////////////////
Module.prototype.unloadAll = function () {
var i;
var path;
var unload = [];
for (path in ModuleCache) {
if (ModuleCache.hasOwnProperty(path)) {
this.unload(path);
unload.push(path);
ModuleCache[path]._normalized = {};
}
}
for (i = 0; i < unload.length; ++i) {
this.unload(unload[i]);
}
};
////////////////////////////////////////////////////////////////////////////////