vendor/assets/javascripts/modularity.js.coffee in modularity-rails-0.6.3 vs vendor/assets/javascripts/modularity.js.coffee in modularity-rails-0.7.0

- old
+ new

@@ -16,9 +16,10 @@ return alert 'Error in Module constructor: The given container must be a jQuery object.' unless typeof container.jquery == 'string' return alert "Error in Module constructor: The given container ('#{container.selector}') is empty." unless container? and container.length > 0 return alert "Error in Module constructor: The given container ('#{container.selector}') has more than one element." unless container? and container.length == 1 + # Attach mixins. if @mixins? for mixin_data in @mixins # Attach all properties from mixin to the prototype. for methodName, method of mixin_data.mixin