UNPKG
hg-sid
Version:
latest (0.1.3)
0.1.3
a front-end simple framework with mvc
github.com/hamger/sid
hamger/sid
hg-sid
/
src
/
data-dirver
/
class-api
/
mixin.ts
10 lines
(8 loc)
•
242 B
text/typescript
View Raw
1
2
3
4
5
6
7
8
9
10
import
DDClass
from
'../instance'
import
{ mergeOptions }
from
'../util/options'
export
function
initMixin
(
DD:
typeof
DDClass
) {
DD
.
mixin
=
function
(
mixin: any
) {
this
.
options
=
mergeOptions
(
this
.
options
, mixin)
return
this
} }