Sha256: fbafbf5b6b124c93cd0a698c0d4ab30156c6d57d5c79d8c75d51725e97cf7d93

Contents?: true

Size: 206 Bytes

Versions: 4

Compression:

Stored size: 206 Bytes

Contents

Mix = (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

export default Mix

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
loco-rails-3.0.3 test/dummy/node_modules/loco-js/src/base/mix.coffee
loco-rails-3.0.2 test/dummy/node_modules/loco-js/src/base/mix.coffee
loco-rails-3.0.1 test/dummy/node_modules/loco-js/src/base/mix.coffee
loco-rails-3.0.0 test/dummy/node_modules/loco-js/src/base/mix.coffee