This commit is contained in:
shenjack 2024-03-23 08:47:13 +08:00
parent 9119d8fe72
commit 52e240cef6
Signed by: shenjack
GPG Key ID: 7B1134A979775551

View File

@ -1,25 +1,25 @@
(function dartProgram() { (function dartProgram() {
function copyProperties(a, b) { function copyProperties(from, to) {
var s = Object.keys(a) var keys = Object.keys(from)
for (var r = 0; r < s.length; r++) { for (var r = 0; r < keys.length; r++) {
var q = s[r] var q = keys[r]
b[q] = a[q] to[q] = from[q]
} }
} }
function mixinProperties(a, b) { function mixinProperties(from, to) {
var s = Object.keys(a) var s = Object.keys(from)
for (var r = 0; r < s.length; r++) { for (var r = 0; r < s.length; r++) {
var q = s[r] var q = s[r]
if (!b.hasOwnProperty(q)) b[q] = a[q] if (!to.hasOwnProperty(q)) to[q] = from[q]
} }
} }
function inherit(a, b) { function inherit(cls, sup) {
a.prototype.constructor = a cls.prototype.constructor = cls
a.prototype["$i" + a.name] = a cls.prototype["$i" + cls.name] = cls
if (b != null) { if (sup != null) {
a.prototype.__proto__ = b.prototype cls.prototype.__proto__ = sup.prototype
return return
} }
} }