mirror of https://gitee.com/bigwinds/arangodb
Merge remote-tracking branch 'origin/1.2' into devel
This commit is contained in:
commit
d10f4b2194
|
@ -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]);
|
||||
}
|
||||
};
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
|
Loading…
Reference in New Issue