Add mixOff function.
parent
c2ac5c0d9e
commit
d8ba3e328b
|
@ -31,5 +31,15 @@ bindOnce = (scope, attr, continuation) =>
|
|||
delBind() if delBind
|
||||
|
||||
|
||||
mixOf = (base, mixins...) ->
|
||||
class Mixed extends base
|
||||
|
||||
for mixin in mixins by -1 #earlier mixins override later ones
|
||||
for name, method of mixin::
|
||||
Mixed::[name] = method
|
||||
Mixed
|
||||
|
||||
|
||||
taiga = @.taiga
|
||||
taiga.bindOnce = bindOnce
|
||||
taiga.mixOf = mixOf
|
||||
|
|
Loading…
Reference in New Issue