Comparing version 2.1.10 to 2.1.11
{ | ||
"version": "0.2.0", | ||
"configurations": [ | ||
{ | ||
"name": "Launch", | ||
"type": "node", | ||
"request": "launch", | ||
"program": "${workspaceRoot}/test/class.test.js", | ||
"stopOnEntry": false, | ||
"args": [], | ||
"cwd": "${workspaceRoot}", | ||
"preLaunchTask": null, | ||
"runtimeExecutable": null, | ||
"runtimeArgs": [ | ||
"--nolazy" | ||
], | ||
"env": { | ||
"NODE_ENV": "development" | ||
}, | ||
"externalConsole": false, | ||
"sourceMaps": false, | ||
"outDir": null | ||
}, | ||
{ | ||
"name": "Attach", | ||
"type": "node", | ||
"request": "attach", | ||
"port": 5858, | ||
"address": "localhost", | ||
"restart": false, | ||
"sourceMaps": false, | ||
"outDir": null, | ||
"localRoot": "${workspaceRoot}", | ||
"remoteRoot": null | ||
} | ||
] | ||
// Use IntelliSense to learn about possible Node.js debug attributes. | ||
// Hover to view descriptions of existing attributes. | ||
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 | ||
"version": "0.2.0", | ||
"configurations": [ | ||
{ | ||
"type": "node", | ||
"request": "launch", | ||
"name": "Launch Program", | ||
"program": "${workspaceRoot}/test/class.js", | ||
"cwd": "${workspaceRoot}" | ||
}, | ||
{ | ||
"type": "node", | ||
"request": "attach", | ||
"name": "Attach to Process", | ||
"port": 5858 | ||
} | ||
] | ||
} |
@@ -20,5 +20,8 @@ const utils = require('ntils'); | ||
if (utils.isFunction(options.$extends)) { | ||
var proto = utils.getPrototypeOf(this); | ||
this._super_ret_ = options.$extends.apply(this, arguments); | ||
utils.setPrototypeOf(proto, this._super_ret_); | ||
//这几行确保可继承于数组 | ||
if (this._super_ret_) { | ||
var proto = utils.getPrototypeOf(this); | ||
utils.setPrototypeOf(proto, this._super_ret_); | ||
} | ||
} else { | ||
@@ -25,0 +28,0 @@ this._super_ret_ = options.$extends; |
{ | ||
"name": "cify", | ||
"version": "2.1.10", | ||
"version": "2.1.11", | ||
"description": "一个面向对象辅助模块", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
4634
117