mm_machine 1.9.5 → 1.9.6

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("你好7654321", i++)
4
+ console.log("你好1234567", i++)
5
5
  }
6
6
 
7
7
  function main() {
package/item.js CHANGED
@@ -197,7 +197,9 @@ Item.prototype.load_script = function(file, name = "") {
197
197
  cs = $.require(file, (cs, way) => {
198
198
  if (way == "change" && cs) {
199
199
  if (name) {
200
- this.main = cs[name];
200
+ if (cs[name]) {
201
+ this.main = cs[name];
202
+ }
201
203
  } else {
202
204
  $.push(this, cs, true);
203
205
  }
@@ -208,7 +210,9 @@ Item.prototype.load_script = function(file, name = "") {
208
210
  }
209
211
  if (cs) {
210
212
  if (name) {
211
- this.main = cs[name];
213
+ if (cs[name]) {
214
+ this.main = cs[name];
215
+ }
212
216
  } else {
213
217
  $.push(this, cs, true);
214
218
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mm_machine",
3
- "version": "1.9.5",
3
+ "version": "1.9.6",
4
4
  "description": "这是超级美眉框架机制构建辅助模块,用于快速构建一个机制",
5
5
  "main": "index.js",
6
6
  "scripts": {