publish: obaa@2.1.1

This commit is contained in:
dntzhang 2020-12-18 10:08:54 +08:00
parent 0d34a82299
commit a94e1dcaca
2 changed files with 5 additions and 6 deletions

View File

@ -1,5 +1,5 @@
/*
* obaa 2.1.0
* obaa 2.1.1
* By dntzhang
* Github: https://github.com/Tencent/omi/tree/master/packages/obaa
* MIT Licensed.
@ -230,7 +230,7 @@
if (value == "__deleted__") {
delete target[prop];
delete target.__o_[prop];
}
}
handler.propChanged.call(target, prop, value, oldValue, path)
}
}
@ -286,7 +286,7 @@
obaa.delete = function (obj, prop, value) {
obj[prop] = "__deleted__";
watch(obj, prop, obj.__o_, obj.__o_)
}
}
Array.prototype.size = function (length) {
this.length = length

View File

@ -1,10 +1,9 @@
{
"name": "obaa",
"version": "2.1.0",
"version": "2.1.1",
"description": "Observe any object's any change.",
"main": "index.js",
"scripts": {
},
"scripts": {},
"repository": {
"type": "git",
"url": "git+https://github.com/Tencent/omi.git"