{"action":"created","issue":{"url":"https://api.github.com/repos/muut/riotjs/issues/416","labels_url":"https://api.github.com/repos/muut/riotjs/issues/416/labels{/name}","comments_url":"https://api.github.com/repos/muut/riotjs/issues/416/comments","events_url":"https://api.github.com/repos/muut/riotjs/issues/416/events","html_url":"https://github.com/muut/riotjs/issues/416","id":58491307,"number":416,"title":"Plugin system","user":{"login":"tipiirai","id":169330,"avatar_url":"https://avatars.githubusercontent.com/u/169330?v=3","gravatar_id":"","url":"https://api.github.com/users/tipiirai","html_url":"https://github.com/tipiirai","followers_url":"https://api.github.com/users/tipiirai/followers","following_url":"https://api.github.com/users/tipiirai/following{/other_user}","gists_url":"https://api.github.com/users/tipiirai/gists{/gist_id}","starred_url":"https://api.github.com/users/tipiirai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tipiirai/subscriptions","organizations_url":"https://api.github.com/users/tipiirai/orgs","repos_url":"https://api.github.com/users/tipiirai/repos","events_url":"https://api.github.com/users/tipiirai/events{/privacy}","received_events_url":"https://api.github.com/users/tipiirai/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"tipiirai","id":169330,"avatar_url":"https://avatars.githubusercontent.com/u/169330?v=3","gravatar_id":"","url":"https://api.github.com/users/tipiirai","html_url":"https://github.com/tipiirai","followers_url":"https://api.github.com/users/tipiirai/followers","following_url":"https://api.github.com/users/tipiirai/following{/other_user}","gists_url":"https://api.github.com/users/tipiirai/gists{/gist_id}","starred_url":"https://api.github.com/users/tipiirai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tipiirai/subscriptions","organizations_url":"https://api.github.com/users/tipiirai/orgs","repos_url":"https://api.github.com/users/tipiirai/repos","events_url":"https://api.github.com/users/tipiirai/events{/privacy}","received_events_url":"https://api.github.com/users/tipiirai/received_events","type":"User","site_admin":false},"milestone":null,"comments":3,"created_at":"2015-02-22T05:32:06Z","updated_at":"2015-02-28T19:15:48Z","closed_at":null,"body":"A tag extension mechanism similar to jQuery. Proposed syntax:\r\n\r\n``` javascript\r\n// plugin definition\r\nriot.fn.extravaganza = function() {\r\n  return this.forEach(function() {\r\n    this.on('premount', doSomething)\r\n    this.on('update', doSomethingElse)\r\n  })\r\n}\r\n\r\n// plugin initialization\r\nriot.mount('my-tag').extravaganza().another_plugin().and_another()\r\n```\r\n\r\nThis differs from React mixins that the tags themselves don't need to know about extensions. They are externally defined without coupling. \r\n\r\n"},"comment":{"url":"https://api.github.com/repos/muut/riotjs/issues/comments/76540915","html_url":"https://github.com/muut/riotjs/issues/416#issuecomment-76540915","issue_url":"https://api.github.com/repos/muut/riotjs/issues/416","id":76540915,"user":{"login":"jimsparkman","id":6545560,"avatar_url":"https://avatars.githubusercontent.com/u/6545560?v=3","gravatar_id":"","url":"https://api.github.com/users/jimsparkman","html_url":"https://github.com/jimsparkman","followers_url":"https://api.github.com/users/jimsparkman/followers","following_url":"https://api.github.com/users/jimsparkman/following{/other_user}","gists_url":"https://api.github.com/users/jimsparkman/gists{/gist_id}","starred_url":"https://api.github.com/users/jimsparkman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jimsparkman/subscriptions","organizations_url":"https://api.github.com/users/jimsparkman/orgs","repos_url":"https://api.github.com/users/jimsparkman/repos","events_url":"https://api.github.com/users/jimsparkman/events{/privacy}","received_events_url":"https://api.github.com/users/jimsparkman/received_events","type":"User","site_admin":false},"created_at":"2015-02-28T19:15:48Z","updated_at":"2015-02-28T19:15:48Z","body":"What's the ETA on this?\r\n\r\nWondering if I can incorporate this into [RiotControl](https://github.com/jimsparkman/RiotControl) somehow."}}