rua
This commit is contained in:
parent
9119d8fe72
commit
52e240cef6
@ -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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user