{"action":"created","issue":{"url":"https://api.github.com/repos/Juris-M/citeproc-js-docs/issues/4","repository_url":"https://api.github.com/repos/Juris-M/citeproc-js-docs","labels_url":"https://api.github.com/repos/Juris-M/citeproc-js-docs/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/Juris-M/citeproc-js-docs/issues/4/comments","events_url":"https://api.github.com/repos/Juris-M/citeproc-js-docs/issues/4/events","html_url":"https://github.com/Juris-M/citeproc-js-docs/pull/4","id":155389579,"number":4,"title":"Revert back to ES6 + add babel","user":{"login":"dsifford","id":5240018,"avatar_url":"https://avatars.githubusercontent.com/u/5240018?v=3","gravatar_id":"","url":"https://api.github.com/users/dsifford","html_url":"https://github.com/dsifford","followers_url":"https://api.github.com/users/dsifford/followers","following_url":"https://api.github.com/users/dsifford/following{/other_user}","gists_url":"https://api.github.com/users/dsifford/gists{/gist_id}","starred_url":"https://api.github.com/users/dsifford/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dsifford/subscriptions","organizations_url":"https://api.github.com/users/dsifford/orgs","repos_url":"https://api.github.com/users/dsifford/repos","events_url":"https://api.github.com/users/dsifford/events{/privacy}","received_events_url":"https://api.github.com/users/dsifford/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":15,"created_at":"2016-05-18T00:01:41Z","updated_at":"2016-05-19T02:04:48Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/Juris-M/citeproc-js-docs/pulls/4","html_url":"https://github.com/Juris-M/citeproc-js-docs/pull/4","diff_url":"https://github.com/Juris-M/citeproc-js-docs/pull/4.diff","patch_url":"https://github.com/Juris-M/citeproc-js-docs/pull/4.patch"},"body":"Thought I'd start a working PR here.\r\n\r\nI'll add comments inline where I have questions.\r\n\r\nNote: I'm not familiar with makefiles, but [babel has an integration for it](http://babeljs.io/docs/setup/#installation). For now, in order to compile to ES5, you just need to do the following.\r\n\r\n1. Pull the project\r\n2. `npm install`\r\n3. `npm run build` "},"comment":{"url":"https://api.github.com/repos/Juris-M/citeproc-js-docs/issues/comments/220209218","html_url":"https://github.com/Juris-M/citeproc-js-docs/pull/4#issuecomment-220209218","issue_url":"https://api.github.com/repos/Juris-M/citeproc-js-docs/issues/4","id":220209218,"user":{"login":"fbennett","id":75338,"avatar_url":"https://avatars.githubusercontent.com/u/75338?v=3","gravatar_id":"","url":"https://api.github.com/users/fbennett","html_url":"https://github.com/fbennett","followers_url":"https://api.github.com/users/fbennett/followers","following_url":"https://api.github.com/users/fbennett/following{/other_user}","gists_url":"https://api.github.com/users/fbennett/gists{/gist_id}","starred_url":"https://api.github.com/users/fbennett/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fbennett/subscriptions","organizations_url":"https://api.github.com/users/fbennett/orgs","repos_url":"https://api.github.com/users/fbennett/repos","events_url":"https://api.github.com/users/fbennett/events{/privacy}","received_events_url":"https://api.github.com/users/fbennett/received_events","type":"User","site_admin":false},"created_at":"2016-05-19T02:04:48Z","updated_at":"2016-05-19T02:04:48Z","body":"I don't see the proposal you mentioned. I don't really see how you can remove DOM access everywhere. The citation data registered in the processor needs to be aligned with document state, which can change between processor transactions through addition, rearrangement, pasting, and removal of citations. The way that's done in a word processor is through a platform-specific API to the document that returns the essentials of the current state. That's mostly what this is - as you say, there are very few functions in there that deal with data alone, and that's why. So I'm kind of at a loss at what you have in mind, but I'm happy to watch and learn."}}