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.
@@ -1,7 +1,7 @@
1
1
  var i = 0;
2
2
 
3
3
  function test() {
4
- console.log("你好1234567", i++)
4
+ console.log("你好7654321", i++)
5
5
  }
6
6
 
7
7
  function main() {
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
- this.remove_module(file || this.config.func_file.fullname(this.dir));
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
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mm_machine",
3
- "version": "1.9.6",
3
+ "version": "1.9.7",
4
4
  "description": "这是超级美眉框架机制构建辅助模块,用于快速构建一个机制",
5
5
  "main": "index.js",
6
6
  "scripts": {