README.md in modularity-rails-0.7.1 vs README.md in modularity-rails-0.8.0

- old
+ new

@@ -6,10 +6,15 @@ Modularity is a pattern and framework for lightweight object-oriented JavaScript that allows to compose functionally rich web pages in a clean and testable way out of well structured and reusable components. +## Authors +* [Kevin Goslar](https://github.com/kevgo) (kevin.goslar@gmail.com) +* [Alex David](https://github.com/alexdavid) + + # Installation Add this line to your application's Gemfile: ```ruby @@ -109,9 +114,23 @@ If this method returns a falsy value, the closing process is aborted. * The closable module fires a local 'closing' event (with the DOM still present). * The whole module including its container is removed from the DOM. * The _closable_closed_ hook of the closable class is called. + +## Tools + +### Loader +A generic cached loader for parallel and repeated GET requests. +Prevents duplicate requests, caches the responses. + +The first request triggers the ajax request. Subsequent requests while the resquest is running are accumulated without causing new requests. +Once the response arrives, all currently requesting clients are answered. Subsequent requests are answered immediately using the cached data. + +```coffeescript +Module.loader.get '/test.json', (data) -> + # Use data here. +``` # Development ## Contributing