vendor/assets/javascripts/modularity.js.coffee in modularity-rails-0.8.0 vs vendor/assets/javascripts/modularity.js.coffee in modularity-rails-0.8.1

- old
+ new

@@ -2,10 +2,13 @@ # # Use UglifyJS (http://github.com/mishoo/UglifyJS) for compression. # # Please see https://github.com/kevgo/modularity for more information. -class window.Module + +window.modularity or= {} + +class window.modularity.Module # The container variable is required. Provide 'testing' in tests. constructor: (container) -> container = $(container) if (typeof container == 'string') and container != 'testing' @container = container