{"action":"created","comment":{"url":"https://api.github.com/repos/j2css/j2c/pulls/comments/53396317","id":53396317,"diff_hunk":"@@ -39,41 +33,40 @@ export function declarations(o, buf, prefix, vendors, local, ns, /*var*/ k, v, k\n     for (k in o) if (own.call(o, k)){\n       v = o[k]\n       if (/\\$/.test(k)) {\n-        for (kk in (k = k.split('$'))) if (own.call(k, kk))\n-          declarations(v, buf, prefix + k[kk], vendors, local, ns)\n+        for (kk in (k = k.split('$'))) if (own.call(k, kk)) {\n+\n+          declarations(v, emit, prefix + k[kk], local, localize)\n+\n+        }\n       } else {\n-        declarations(v, buf, prefix + k, vendors, local, ns)\n+\n+        declarations(v, emit, prefix + k, local, localize)\n+\n       }\n     }\n     break\n   default:\n     // prefix is falsy when it is \"\", which means that we're\n     // at the top level.\n-    // `o` is then treated as a `property:value` pair.\n-    // otherwise, `prefix` is the property name, and\n+    // `o` is then treated as a `property:value` pair, or a\n+    // semi-colon-separated list thereof.\n+    // Otherwise, `prefix` is the property name, and\n     // `o` is the value.\n+\n+    // restore the dashes\n     k = prefix.replace(/_/g, '-').replace(/[A-Z]/g, decamelize)\n \n-    if (local && (k == 'animation-name' || k == 'animation')) {\n+    if (local && (k == 'animation-name' || k == 'animation' || k == 'list-style')) {\n+      // no need to tokenize here a plain `.split(',')` has all bases covered.\n+      // We may 'localize' a comment, but it's not a big deal.\n       o = o.split(',').map(function (o) {\n-        return o.replace(/()(?::global\\(\\s*([-\\w]+)\\s*\\)|()([-\\w]+))/, ns.l)\n-      }).join(',')\n-    }\n-    if (/^animation|^transition/.test(k)) vendors = ['webkit']\n-    // '@' in properties also triggers the *ielte7 hack\n-    // Since plugins dispatch on the /^@/ for at-rules\n-    // we swap the at for an asterisk\n-    // http://browserhacks.com/#hack-6d49e92634f26ae6d6e46b3ebc10019a\n \n-    k = k.replace(/^@/, '*')\n+        return o.replace(/:?global\\(\\s*([_A-Za-z][-\\w]*)\\s*\\)|()(-?[_A-Za-z][-\\w]*)/, localize)\n \n-/*/-statements-/*/\n-    // vendorify\n-    for (kk = 0; kk < vendors.length; kk++)\n-      buf.push('-', vendors[kk], '-', k, k ? ':': '', o, ';\\n')\n-/*/-statements-/*/\n+      }).join(',')","path":"src/declarations.js","position":93,"original_position":93,"commit_id":"796b5ef8c36472b86b34354c30d1d23a5cba4955","original_commit_id":"796b5ef8c36472b86b34354c30d1d23a5cba4955","user":{"login":"houndci-bot","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","gravatar_id":"","url":"https://api.github.com/users/houndci-bot","html_url":"https://github.com/houndci-bot","followers_url":"https://api.github.com/users/houndci-bot/followers","following_url":"https://api.github.com/users/houndci-bot/following{/other_user}","gists_url":"https://api.github.com/users/houndci-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci-bot/subscriptions","organizations_url":"https://api.github.com/users/houndci-bot/orgs","repos_url":"https://api.github.com/users/houndci-bot/repos","events_url":"https://api.github.com/users/houndci-bot/events{/privacy}","received_events_url":"https://api.github.com/users/houndci-bot/received_events","type":"User","site_admin":false},"body":"Missing semicolon.","created_at":"2016-02-18T22:51:51Z","updated_at":"2016-02-18T22:51:51Z","html_url":"https://github.com/j2css/j2c/pull/15#discussion_r53396317","pull_request_url":"https://api.github.com/repos/j2css/j2c/pulls/15","_links":{"self":{"href":"https://api.github.com/repos/j2css/j2c/pulls/comments/53396317"},"html":{"href":"https://github.com/j2css/j2c/pull/15#discussion_r53396317"},"pull_request":{"href":"https://api.github.com/repos/j2css/j2c/pulls/15"}}},"pull_request":{"url":"https://api.github.com/repos/j2css/j2c/pulls/15","id":56290844,"html_url":"https://github.com/j2css/j2c/pull/15","diff_url":"https://github.com/j2css/j2c/pull/15.diff","patch_url":"https://github.com/j2css/j2c/pull/15.patch","issue_url":"https://api.github.com/repos/j2css/j2c/issues/15","number":15,"state":"open","locked":false,"title":"API overhaul (v1.0.0 preview)","user":{"login":"pygy","id":54515,"avatar_url":"https://avatars.githubusercontent.com/u/54515?v=3","gravatar_id":"","url":"https://api.github.com/users/pygy","html_url":"https://github.com/pygy","followers_url":"https://api.github.com/users/pygy/followers","following_url":"https://api.github.com/users/pygy/following{/other_user}","gists_url":"https://api.github.com/users/pygy/gists{/gist_id}","starred_url":"https://api.github.com/users/pygy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pygy/subscriptions","organizations_url":"https://api.github.com/users/pygy/orgs","repos_url":"https://api.github.com/users/pygy/repos","events_url":"https://api.github.com/users/pygy/events{/privacy}","received_events_url":"https://api.github.com/users/pygy/received_events","type":"User","site_admin":false},"body":"This is the API rewrite I've already mentioned on Gitter, I'd love to get feedback on this before I merge it in.\r\n\r\nHere are the main changes:\r\n\r\n- Local namespaces are now per `j2c` instances.\r\n- `j2c.sheet()` returns a plain string, not a wrapped `new String()`.\r\n- names are attached to `j2c.names`.\r\n- `j2c.inine` shares the same namespace for animations.\r\n- `_j2c = j2c([ plugins | options]...)` is a `j2c` instance factory.\r\n- `_j2c.use([plugins | options]...)` works exaclty like the factory. The default `j2c` instance doesn't have `use()`.\r\n\r\nPulgins work like this. A plugin can either be a function or an object, or an array of plugins (thus nested arrays are supported).\r\n\r\nIf it is a function, it is called with the instance as a sole argument, and can thus read and modify it. If it returns an object, that result is treated as if it were an object plugin.\r\n\r\nIf the plugin is an object, we iterate over its properties.\r\n\r\n- If `names` is found, use the corresponding value to define names in the local namespace. Preexisting names are not overwritten (`_.default` stlye).\r\n- If `postprocess` is found, push the corresponding value in the `postprocessors` array.\r\n- Otherwise, decorate the instance with the key/vaule pair. Don't overwrite pre-existing methods. Thus, passing the upcoming `j2c-color` to `use` would add all the color methods wo the instance.\r\n\r\nThe idea is to put everytihng style-related inside the `j2c` instance, so that you can build it in one place, and just `import`/`require` one thing in your modules.\r\n\r\nI'd imagine `mithril-j2c` for that version as a plugin that spies on `sheet` (wrap it)  and add a `view` function to the `j2c` instance, for example.\r\n\r\nWhat do you guys think?","created_at":"2016-01-17T23:21:03Z","updated_at":"2016-02-18T22:51:51Z","closed_at":null,"merged_at":null,"merge_commit_sha":"1ec5c816800ce56e7f4e2235b53456c1b37f4e3c","assignee":null,"milestone":{"url":"https://api.github.com/repos/j2css/j2c/milestones/1","html_url":"https://github.com/j2css/j2c/milestones/v1.0","labels_url":"https://api.github.com/repos/j2css/j2c/milestones/1/labels","id":1570800,"number":1,"title":"v1.0","description":null,"creator":{"login":"pygy","id":54515,"avatar_url":"https://avatars.githubusercontent.com/u/54515?v=3","gravatar_id":"","url":"https://api.github.com/users/pygy","html_url":"https://github.com/pygy","followers_url":"https://api.github.com/users/pygy/followers","following_url":"https://api.github.com/users/pygy/following{/other_user}","gists_url":"https://api.github.com/users/pygy/gists{/gist_id}","starred_url":"https://api.github.com/users/pygy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pygy/subscriptions","organizations_url":"https://api.github.com/users/pygy/orgs","repos_url":"https://api.github.com/users/pygy/repos","events_url":"https://api.github.com/users/pygy/events{/privacy}","received_events_url":"https://api.github.com/users/pygy/received_events","type":"User","site_admin":false},"open_issues":2,"closed_issues":4,"state":"open","created_at":"2016-02-08T17:08:06Z","updated_at":"2016-02-08T17:14:36Z","due_on":null,"closed_at":null},"commits_url":"https://api.github.com/repos/j2css/j2c/pulls/15/commits","review_comments_url":"https://api.github.com/repos/j2css/j2c/pulls/15/comments","review_comment_url":"https://api.github.com/repos/j2css/j2c/pulls/comments{/number}","comments_url":"https://api.github.com/repos/j2css/j2c/issues/15/comments","statuses_url":"https://api.github.com/repos/j2css/j2c/statuses/796b5ef8c36472b86b34354c30d1d23a5cba4955","head":{"label":"j2css:v1_preview","ref":"v1_preview","sha":"796b5ef8c36472b86b34354c30d1d23a5cba4955","user":{"login":"j2css","id":16261183,"avatar_url":"https://avatars.githubusercontent.com/u/16261183?v=3","gravatar_id":"","url":"https://api.github.com/users/j2css","html_url":"https://github.com/j2css","followers_url":"https://api.github.com/users/j2css/followers","following_url":"https://api.github.com/users/j2css/following{/other_user}","gists_url":"https://api.github.com/users/j2css/gists{/gist_id}","starred_url":"https://api.github.com/users/j2css/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/j2css/subscriptions","organizations_url":"https://api.github.com/users/j2css/orgs","repos_url":"https://api.github.com/users/j2css/repos","events_url":"https://api.github.com/users/j2css/events{/privacy}","received_events_url":"https://api.github.com/users/j2css/received_events","type":"Organization","site_admin":false},"repo":{"id":33741255,"name":"j2c","full_name":"j2css/j2c","owner":{"login":"j2css","id":16261183,"avatar_url":"https://avatars.githubusercontent.com/u/16261183?v=3","gravatar_id":"","url":"https://api.github.com/users/j2css","html_url":"https://github.com/j2css","followers_url":"https://api.github.com/users/j2css/followers","following_url":"https://api.github.com/users/j2css/following{/other_user}","gists_url":"https://api.github.com/users/j2css/gists{/gist_id}","starred_url":"https://api.github.com/users/j2css/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/j2css/subscriptions","organizations_url":"https://api.github.com/users/j2css/orgs","repos_url":"https://api.github.com/users/j2css/repos","events_url":"https://api.github.com/users/j2css/events{/privacy}","received_events_url":"https://api.github.com/users/j2css/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/j2css/j2c","description":"CSS in JS library, tiny yet featureful","fork":false,"url":"https://api.github.com/repos/j2css/j2c","forks_url":"https://api.github.com/repos/j2css/j2c/forks","keys_url":"https://api.github.com/repos/j2css/j2c/keys{/key_id}","collaborators_url":"https://api.github.com/repos/j2css/j2c/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/j2css/j2c/teams","hooks_url":"https://api.github.com/repos/j2css/j2c/hooks","issue_events_url":"https://api.github.com/repos/j2css/j2c/issues/events{/number}","events_url":"https://api.github.com/repos/j2css/j2c/events","assignees_url":"https://api.github.com/repos/j2css/j2c/assignees{/user}","branches_url":"https://api.github.com/repos/j2css/j2c/branches{/branch}","tags_url":"https://api.github.com/repos/j2css/j2c/tags","blobs_url":"https://api.github.com/repos/j2css/j2c/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/j2css/j2c/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/j2css/j2c/git/refs{/sha}","trees_url":"https://api.github.com/repos/j2css/j2c/git/trees{/sha}","statuses_url":"https://api.github.com/repos/j2css/j2c/statuses/{sha}","languages_url":"https://api.github.com/repos/j2css/j2c/languages","stargazers_url":"https://api.github.com/repos/j2css/j2c/stargazers","contributors_url":"https://api.github.com/repos/j2css/j2c/contributors","subscribers_url":"https://api.github.com/repos/j2css/j2c/subscribers","subscription_url":"https://api.github.com/repos/j2css/j2c/subscription","commits_url":"https://api.github.com/repos/j2css/j2c/commits{/sha}","git_commits_url":"https://api.github.com/repos/j2css/j2c/git/commits{/sha}","comments_url":"https://api.github.com/repos/j2css/j2c/comments{/number}","issue_comment_url":"https://api.github.com/repos/j2css/j2c/issues/comments{/number}","contents_url":"https://api.github.com/repos/j2css/j2c/contents/{+path}","compare_url":"https://api.github.com/repos/j2css/j2c/compare/{base}...{head}","merges_url":"https://api.github.com/repos/j2css/j2c/merges","archive_url":"https://api.github.com/repos/j2css/j2c/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/j2css/j2c/downloads","issues_url":"https://api.github.com/repos/j2css/j2c/issues{/number}","pulls_url":"https://api.github.com/repos/j2css/j2c/pulls{/number}","milestones_url":"https://api.github.com/repos/j2css/j2c/milestones{/number}","notifications_url":"https://api.github.com/repos/j2css/j2c/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/j2css/j2c/labels{/name}","releases_url":"https://api.github.com/repos/j2css/j2c/releases{/id}","deployments_url":"https://api.github.com/repos/j2css/j2c/deployments","created_at":"2015-04-10T17:28:09Z","updated_at":"2016-02-13T01:27:07Z","pushed_at":"2016-02-18T22:50:52Z","git_url":"git://github.com/j2css/j2c.git","ssh_url":"git@github.com:j2css/j2c.git","clone_url":"https://github.com/j2css/j2c.git","svn_url":"https://github.com/j2css/j2c","homepage":"http://j2c.py.gy","size":1300,"stargazers_count":90,"watchers_count":90,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":4,"mirror_url":null,"open_issues_count":6,"forks":4,"open_issues":6,"watchers":90,"default_branch":"master"}},"base":{"label":"j2css:master","ref":"master","sha":"1df3eeb307398f2ac1273948b7905242c778f818","user":{"login":"j2css","id":16261183,"avatar_url":"https://avatars.githubusercontent.com/u/16261183?v=3","gravatar_id":"","url":"https://api.github.com/users/j2css","html_url":"https://github.com/j2css","followers_url":"https://api.github.com/users/j2css/followers","following_url":"https://api.github.com/users/j2css/following{/other_user}","gists_url":"https://api.github.com/users/j2css/gists{/gist_id}","starred_url":"https://api.github.com/users/j2css/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/j2css/subscriptions","organizations_url":"https://api.github.com/users/j2css/orgs","repos_url":"https://api.github.com/users/j2css/repos","events_url":"https://api.github.com/users/j2css/events{/privacy}","received_events_url":"https://api.github.com/users/j2css/received_events","type":"Organization","site_admin":false},"repo":{"id":33741255,"name":"j2c","full_name":"j2css/j2c","owner":{"login":"j2css","id":16261183,"avatar_url":"https://avatars.githubusercontent.com/u/16261183?v=3","gravatar_id":"","url":"https://api.github.com/users/j2css","html_url":"https://github.com/j2css","followers_url":"https://api.github.com/users/j2css/followers","following_url":"https://api.github.com/users/j2css/following{/other_user}","gists_url":"https://api.github.com/users/j2css/gists{/gist_id}","starred_url":"https://api.github.com/users/j2css/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/j2css/subscriptions","organizations_url":"https://api.github.com/users/j2css/orgs","repos_url":"https://api.github.com/users/j2css/repos","events_url":"https://api.github.com/users/j2css/events{/privacy}","received_events_url":"https://api.github.com/users/j2css/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/j2css/j2c","description":"CSS in JS library, tiny yet featureful","fork":false,"url":"https://api.github.com/repos/j2css/j2c","forks_url":"https://api.github.com/repos/j2css/j2c/forks","keys_url":"https://api.github.com/repos/j2css/j2c/keys{/key_id}","collaborators_url":"https://api.github.com/repos/j2css/j2c/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/j2css/j2c/teams","hooks_url":"https://api.github.com/repos/j2css/j2c/hooks","issue_events_url":"https://api.github.com/repos/j2css/j2c/issues/events{/number}","events_url":"https://api.github.com/repos/j2css/j2c/events","assignees_url":"https://api.github.com/repos/j2css/j2c/assignees{/user}","branches_url":"https://api.github.com/repos/j2css/j2c/branches{/branch}","tags_url":"https://api.github.com/repos/j2css/j2c/tags","blobs_url":"https://api.github.com/repos/j2css/j2c/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/j2css/j2c/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/j2css/j2c/git/refs{/sha}","trees_url":"https://api.github.com/repos/j2css/j2c/git/trees{/sha}","statuses_url":"https://api.github.com/repos/j2css/j2c/statuses/{sha}","languages_url":"https://api.github.com/repos/j2css/j2c/languages","stargazers_url":"https://api.github.com/repos/j2css/j2c/stargazers","contributors_url":"https://api.github.com/repos/j2css/j2c/contributors","subscribers_url":"https://api.github.com/repos/j2css/j2c/subscribers","subscription_url":"https://api.github.com/repos/j2css/j2c/subscription","commits_url":"https://api.github.com/repos/j2css/j2c/commits{/sha}","git_commits_url":"https://api.github.com/repos/j2css/j2c/git/commits{/sha}","comments_url":"https://api.github.com/repos/j2css/j2c/comments{/number}","issue_comment_url":"https://api.github.com/repos/j2css/j2c/issues/comments{/number}","contents_url":"https://api.github.com/repos/j2css/j2c/contents/{+path}","compare_url":"https://api.github.com/repos/j2css/j2c/compare/{base}...{head}","merges_url":"https://api.github.com/repos/j2css/j2c/merges","archive_url":"https://api.github.com/repos/j2css/j2c/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/j2css/j2c/downloads","issues_url":"https://api.github.com/repos/j2css/j2c/issues{/number}","pulls_url":"https://api.github.com/repos/j2css/j2c/pulls{/number}","milestones_url":"https://api.github.com/repos/j2css/j2c/milestones{/number}","notifications_url":"https://api.github.com/repos/j2css/j2c/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/j2css/j2c/labels{/name}","releases_url":"https://api.github.com/repos/j2css/j2c/releases{/id}","deployments_url":"https://api.github.com/repos/j2css/j2c/deployments","created_at":"2015-04-10T17:28:09Z","updated_at":"2016-02-13T01:27:07Z","pushed_at":"2016-02-18T22:50:52Z","git_url":"git://github.com/j2css/j2c.git","ssh_url":"git@github.com:j2css/j2c.git","clone_url":"https://github.com/j2css/j2c.git","svn_url":"https://github.com/j2css/j2c","homepage":"http://j2c.py.gy","size":1300,"stargazers_count":90,"watchers_count":90,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":4,"mirror_url":null,"open_issues_count":6,"forks":4,"open_issues":6,"watchers":90,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/j2css/j2c/pulls/15"},"html":{"href":"https://github.com/j2css/j2c/pull/15"},"issue":{"href":"https://api.github.com/repos/j2css/j2c/issues/15"},"comments":{"href":"https://api.github.com/repos/j2css/j2c/issues/15/comments"},"review_comments":{"href":"https://api.github.com/repos/j2css/j2c/pulls/15/comments"},"review_comment":{"href":"https://api.github.com/repos/j2css/j2c/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/j2css/j2c/pulls/15/commits"},"statuses":{"href":"https://api.github.com/repos/j2css/j2c/statuses/796b5ef8c36472b86b34354c30d1d23a5cba4955"}}}}