{"action":"created","issue":{"url":"https://api.github.com/repos/stampit-org/stampit/issues/177","labels_url":"https://api.github.com/repos/stampit-org/stampit/issues/177/labels{/name}","comments_url":"https://api.github.com/repos/stampit-org/stampit/issues/177/comments","events_url":"https://api.github.com/repos/stampit-org/stampit/issues/177/events","html_url":"https://github.com/stampit-org/stampit/issues/177","id":110813819,"number":177,"title":"question: initialization function repetition","user":{"login":"boneskull","id":924465,"avatar_url":"https://avatars.githubusercontent.com/u/924465?v=3","gravatar_id":"","url":"https://api.github.com/users/boneskull","html_url":"https://github.com/boneskull","followers_url":"https://api.github.com/users/boneskull/followers","following_url":"https://api.github.com/users/boneskull/following{/other_user}","gists_url":"https://api.github.com/users/boneskull/gists{/gist_id}","starred_url":"https://api.github.com/users/boneskull/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/boneskull/subscriptions","organizations_url":"https://api.github.com/users/boneskull/orgs","repos_url":"https://api.github.com/users/boneskull/repos","events_url":"https://api.github.com/users/boneskull/events{/privacy}","received_events_url":"https://api.github.com/users/boneskull/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/stampit-org/stampit/labels/wontfix","name":"wontfix","color":"ffffff"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-10-10T19:58:42Z","updated_at":"2015-10-10T23:43:43Z","closed_at":null,"body":"```js\r\nvar stampit = require('stampit');\r\n\r\nvar foo = 0;\r\n\r\nvar A = stampit({\r\n    init: function() {\r\n        foo++;   \r\n    }\r\n});\r\n\r\nvar B = stampit().compose(A);\r\n    \r\nvar C = stampit().compose(A).compose(B);\r\nfoo // 2\r\n```\r\n\r\nGranted, one would probably not do this, as `C` should probably be:\r\n\r\n```js\r\nvar C = stampit().compose(B);\r\n```\r\n\r\nRegardless, I'm wondering if `Stampit.fixed.init` should be a `Set` instead of just an `Array`... I could see it going either way.\r\n\r\n[Tonic Repl](https://tonicdev.com/boneskull/stampit-init-question)"},"comment":{"url":"https://api.github.com/repos/stampit-org/stampit/issues/comments/147137702","html_url":"https://github.com/stampit-org/stampit/issues/177#issuecomment-147137702","issue_url":"https://api.github.com/repos/stampit-org/stampit/issues/177","id":147137702,"user":{"login":"ericelliott","id":364727,"avatar_url":"https://avatars.githubusercontent.com/u/364727?v=3","gravatar_id":"","url":"https://api.github.com/users/ericelliott","html_url":"https://github.com/ericelliott","followers_url":"https://api.github.com/users/ericelliott/followers","following_url":"https://api.github.com/users/ericelliott/following{/other_user}","gists_url":"https://api.github.com/users/ericelliott/gists{/gist_id}","starred_url":"https://api.github.com/users/ericelliott/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ericelliott/subscriptions","organizations_url":"https://api.github.com/users/ericelliott/orgs","repos_url":"https://api.github.com/users/ericelliott/repos","events_url":"https://api.github.com/users/ericelliott/events{/privacy}","received_events_url":"https://api.github.com/users/ericelliott/received_events","type":"User","site_admin":false},"created_at":"2015-10-10T23:43:43Z","updated_at":"2015-10-10T23:43:43Z","body":"This is a perfectly valid composition, and there are use cases that may require it. Not a bug."}}