mm_machine 1.9.6 → 1.9.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/demo/test1/index.js +1 -1
- package/item.js +9 -1
- package/package.json +1 -1
package/demo/test1/index.js
CHANGED
package/item.js
CHANGED
|
@@ -139,7 +139,15 @@ Item.prototype.remove_module = function(m) {
|
|
|
139
139
|
* @param {String} file 文件
|
|
140
140
|
*/
|
|
141
141
|
Item.prototype.unload_script = function(file) {
|
|
142
|
-
|
|
142
|
+
if (!file) {
|
|
143
|
+
var f = this.config.func_file;
|
|
144
|
+
if (f) {
|
|
145
|
+
file = f.fullname(this.dir)
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
if (file) {
|
|
149
|
+
this.remove_module(file);
|
|
150
|
+
}
|
|
143
151
|
this.complete = false;
|
|
144
152
|
}
|
|
145
153
|
|