{"issue":{"created_at":"2011-12-11T22:53:55Z","state":"open","updated_at":"2011-12-13T03:52:23Z","comments":2,"user":{"gravatar_id":"e54ef3dd843ff9051499a155133bfd02","id":425345,"url":"https://api.github.com/users/yamaguchih","login":"yamaguchih","avatar_url":"https://secure.gravatar.com/avatar/e54ef3dd843ff9051499a155133bfd02?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"body":"### Current state: ###\r\nDirectly including the DAOs in handlers. i.e. require(blahDao) \r\n(This is not optimal)\r\n\r\n### Options:\r\n\r\n1. Pass entire list of DAOs to handlers at the time of handler creation, using a JSON map. Use a naming convention to refer to any DAO. \r\n\r\n2. Pass a partial list of DAOs to handlers, at the time of handler creation. More annoying to maintain.\r\n3. ???\r\n\r\nEither way requires handler singleton to be able to take DAO objects in upon instantiation aka via constructor. Javascript noob is not sure how to do this.","assignee":null,"id":2518094,"labels":[],"number":1,"pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"title":"Best way to pass DAO objects to Handlers?","html_url":"https://github.com/LafColDevs/metadb-core/issues/1","closed_at":null,"url":"https://api.github.com/repos/LafColDevs/metadb-core/issues/1","milestone":{"created_at":"2011-12-11T22:42:36Z","state":"open","closed_issues":0,"due_on":null,"creator":{"gravatar_id":"e54ef3dd843ff9051499a155133bfd02","id":425345,"url":"https://api.github.com/users/yamaguchih","login":"yamaguchih","avatar_url":"https://secure.gravatar.com/avatar/e54ef3dd843ff9051499a155133bfd02?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"number":1,"description":"Users can log in and log out of MetaDB. \r\n-UUID + SHA-1 encryption\r\n-Sessions+session timeout\r\n-Functional login UI","title":"v0.1-Basic authentication and navigation","url":"https://api.github.com/repos/LafColDevs/metadb-core/milestones/1","open_issues":2}},"action":"created","comment":{"created_at":"2011-12-13T03:52:23Z","updated_at":"2011-12-13T03:52:23Z","user":{"gravatar_id":"e54ef3dd843ff9051499a155133bfd02","id":425345,"url":"https://api.github.com/users/yamaguchih","login":"yamaguchih","avatar_url":"https://secure.gravatar.com/avatar/e54ef3dd843ff9051499a155133bfd02?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"body":"Makes sense, ok.","id":3118423,"url":"https://api.github.com/repos/LafColDevs/metadb-core/issues/comments/3118423"}}