vendor/assets/javascripts/modularity.js.coffee in modularity-rails-0.7.0 vs vendor/assets/javascripts/modularity.js.coffee in modularity-rails-0.7.1
- old
+ new
@@ -22,11 +22,11 @@
if @mixins?
for mixin_data in @mixins
# Attach all properties from mixin to the prototype.
for methodName, method of mixin_data.mixin
- unless @[methodName]
- @[methodName] = => method.call(@, mixin_data.params)
+ do (methodName, method) => unless @[methodName]
+ @[methodName] = => method.apply(@, arguments)
# Call constructor function from mixin.
mixin_data.mixin.constructor.apply @, arguments