{"action":"closed","issue":{"url":"https://api.github.com/repos/webpro/DOMtastic/issues/46","repository_url":"https://api.github.com/repos/webpro/DOMtastic","labels_url":"https://api.github.com/repos/webpro/DOMtastic/issues/46/labels{/name}","comments_url":"https://api.github.com/repos/webpro/DOMtastic/issues/46/comments","events_url":"https://api.github.com/repos/webpro/DOMtastic/issues/46/events","html_url":"https://github.com/webpro/DOMtastic/issues/46","id":188918623,"number":46,"title":"Follow on from twitter, JS Architecture help","user":{"login":"matt3224","id":2401925,"avatar_url":"https://avatars.githubusercontent.com/u/2401925?v=3","gravatar_id":"","url":"https://api.github.com/users/matt3224","html_url":"https://github.com/matt3224","followers_url":"https://api.github.com/users/matt3224/followers","following_url":"https://api.github.com/users/matt3224/following{/other_user}","gists_url":"https://api.github.com/users/matt3224/gists{/gist_id}","starred_url":"https://api.github.com/users/matt3224/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matt3224/subscriptions","organizations_url":"https://api.github.com/users/matt3224/orgs","repos_url":"https://api.github.com/users/matt3224/repos","events_url":"https://api.github.com/users/matt3224/events{/privacy}","received_events_url":"https://api.github.com/users/matt3224/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-11-12T15:54:52Z","updated_at":"2016-11-18T23:09:17Z","closed_at":"2016-11-18T23:09:17Z","body":"Hey Lars,\r\n\r\nSorry to bother you with more questions, I really appreciate your help and advise on this though!\r\n\r\nI couldn't explain what I want to do in 140 characters so I am using the repo. I have a framework/library currently written all in es5 using standard iife's. I would like to modernise the framework/library by using es6 modules.\r\n\r\nI want to use DOMtastic as the base for my framework components (things like modals, tabs etc.) and I would like to rebuild them so they can be chained `$('.myelem').modal(); I would like to use factory functions to achieve this rather than classes and for each one to be imported as an es6 module.\r\n\r\nThese would be globally callable without importing `$` in non es6 scripts. I am using rollup and babel to bundle and transpile my code.\r\n\r\nI'm finding it a little difficult to modernise my code as although there is plenty online about es6 modules, it feels like what i'm trying to do is too niche to be documented yet. Either that or i'm misunderstanding how to implement this stuff.\r\n\r\nMany thanks for any insight on what i'm trying to do here."}}
{"actor":{"display_login":"matt3224"}}