{"action":"created","issue":{"url":"https://api.github.com/repos/google/material-design-lite/issues/1211","labels_url":"https://api.github.com/repos/google/material-design-lite/issues/1211/labels{/name}","comments_url":"https://api.github.com/repos/google/material-design-lite/issues/1211/comments","events_url":"https://api.github.com/repos/google/material-design-lite/issues/1211/events","html_url":"https://github.com/google/material-design-lite/pull/1211","id":97247812,"number":1211,"title":"Modularity","user":{"login":"tleunen","id":1972567,"avatar_url":"https://avatars.githubusercontent.com/u/1972567?v=3","gravatar_id":"","url":"https://api.github.com/users/tleunen","html_url":"https://github.com/tleunen","followers_url":"https://api.github.com/users/tleunen/followers","following_url":"https://api.github.com/users/tleunen/following{/other_user}","gists_url":"https://api.github.com/users/tleunen/gists{/gist_id}","starred_url":"https://api.github.com/users/tleunen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tleunen/subscriptions","organizations_url":"https://api.github.com/users/tleunen/orgs","repos_url":"https://api.github.com/users/tleunen/repos","events_url":"https://api.github.com/users/tleunen/events{/privacy}","received_events_url":"https://api.github.com/users/tleunen/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/google/material-design-lite/labels/cla:%20yes","name":"cla: yes","color":"009800"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-07-25T19:12:06Z","updated_at":"2015-07-28T03:56:09Z","closed_at":"2015-07-26T11:18:52Z","pull_request":{"url":"https://api.github.com/repos/google/material-design-lite/pulls/1211","html_url":"https://github.com/google/material-design-lite/pull/1211","diff_url":"https://github.com/google/material-design-lite/pull/1211.diff","patch_url":"https://github.com/google/material-design-lite/pull/1211.patch"},"body":"Issue https://github.com/google/material-design-lite/issues/833\r\n\r\nI made a first try on what could be the code if it was a bit more modular and with less global variables.\r\n\r\nThe only global variable would be `MaterialDesignLite` (see `index.js` for content).\r\n\r\nNothing change for people who uses the master file `Material.js` or `Material.min.js`. But if offers some nice things for others who want just a few components.\r\n\r\nHere's how we could use it:\r\n```\r\nimport componentHandler from 'material-design-lite/lib/mdlComponentHandler';\r\nimport MaterialButton from 'material-design-lite/lib/button/button';\r\nimport RippleEffect from 'material-design-lite/lib/ripple/ripple';\r\ncomponentHandler.register(MaterialButton);\r\ncomponentHandler.register(RippleEffect);\r\n\r\n// ... and then we just have to call this on our specific dom element\r\ncomponentHandler.upgradeElement(domElement)\r\n```\r\n\r\nping @Garbee @addyosmani "},"comment":{"url":"https://api.github.com/repos/google/material-design-lite/issues/comments/125431316","html_url":"https://github.com/google/material-design-lite/pull/1211#issuecomment-125431316","issue_url":"https://api.github.com/repos/google/material-design-lite/issues/1211","id":125431316,"user":{"login":"zuhairnaqvi","id":403931,"avatar_url":"https://avatars.githubusercontent.com/u/403931?v=3","gravatar_id":"","url":"https://api.github.com/users/zuhairnaqvi","html_url":"https://github.com/zuhairnaqvi","followers_url":"https://api.github.com/users/zuhairnaqvi/followers","following_url":"https://api.github.com/users/zuhairnaqvi/following{/other_user}","gists_url":"https://api.github.com/users/zuhairnaqvi/gists{/gist_id}","starred_url":"https://api.github.com/users/zuhairnaqvi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zuhairnaqvi/subscriptions","organizations_url":"https://api.github.com/users/zuhairnaqvi/orgs","repos_url":"https://api.github.com/users/zuhairnaqvi/repos","events_url":"https://api.github.com/users/zuhairnaqvi/events{/privacy}","received_events_url":"https://api.github.com/users/zuhairnaqvi/received_events","type":"User","site_admin":false},"created_at":"2015-07-28T03:56:08Z","updated_at":"2015-07-28T03:56:08Z","body":"Any ideas on the timeline for this merge?"}}