{"action":"created","comment":{"url":"https://api.github.com/repos/hulilabs/ju-components/pulls/comments/54631418","id":54631418,"diff_hunk":"@@ -0,0 +1,93 @@\n+/**                   _\n+ *  _             _ _| |_\n+ * | |           | |_   _|\n+ * | |___  _   _ | | |_|\n+ * | '_  \\| | | || | | |\n+ * | | | || |_| || | | |\n+ * |_| |_|\\___,_||_| |_|\n+ *\n+ * (c) Huli Inc\n+ */\n+\n+/**\n+ * Add options support on any class\n+ * - getOption : fn(key)\n+ * - getOptions : fn()\n+ * - prepareOptions : fn()\n+ * - setOptions : fn(opts)\n+ *\n+ * @warning must be used with decorators on class definition\n+ */\n+define([\n+            'jquery',\n+            'ju-shared/class'\n+        ],\n+        function(\n+            $,\n+            Class\n+        ) {\n+    'use strict';\n+\n+    var OptionsHelper = Class.extend({\n+        init : function() {\n+            // Define options\n+            this._opts = {};\n+\n+            // Define options collector\n+            this._initOptsCollector(true);\n+        },\n+        /**\n+         * Include options in the opts collector\n+         * Set default options and override parents options\n+         * Keeps the flow from child to parent (no untraceable flows with before and after super)\n+         * - Child options always have precedence over parent options\n+         * - Parent options should never overwrite children options\n+         * @warn ALWAYS call setOptions BEFORE _super","path":"src/helper/options.js","position":45,"original_position":45,"commit_id":"c116888010463cc1d14d60bbcbf2a0d0fcbe5d07","original_commit_id":"c116888010463cc1d14d60bbcbf2a0d0fcbe5d07","user":{"login":"jpgarbanzo","id":3778202,"avatar_url":"https://avatars.githubusercontent.com/u/3778202?v=3","gravatar_id":"","url":"https://api.github.com/users/jpgarbanzo","html_url":"https://github.com/jpgarbanzo","followers_url":"https://api.github.com/users/jpgarbanzo/followers","following_url":"https://api.github.com/users/jpgarbanzo/following{/other_user}","gists_url":"https://api.github.com/users/jpgarbanzo/gists{/gist_id}","starred_url":"https://api.github.com/users/jpgarbanzo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jpgarbanzo/subscriptions","organizations_url":"https://api.github.com/users/jpgarbanzo/orgs","repos_url":"https://api.github.com/users/jpgarbanzo/repos","events_url":"https://api.github.com/users/jpgarbanzo/events{/privacy}","received_events_url":"https://api.github.com/users/jpgarbanzo/received_events","type":"User","site_admin":false},"body":"it'll be important to clarify _which_ super","created_at":"2016-03-01T20:38:08Z","updated_at":"2016-03-01T20:38:08Z","html_url":"https://github.com/hulilabs/ju-components/pull/30#discussion_r54631418","pull_request_url":"https://api.github.com/repos/hulilabs/ju-components/pulls/30","_links":{"self":{"href":"https://api.github.com/repos/hulilabs/ju-components/pulls/comments/54631418"},"html":{"href":"https://github.com/hulilabs/ju-components/pull/30#discussion_r54631418"},"pull_request":{"href":"https://api.github.com/repos/hulilabs/ju-components/pulls/30"}}},"pull_request":{"url":"https://api.github.com/repos/hulilabs/ju-components/pulls/30","id":60737102,"html_url":"https://github.com/hulilabs/ju-components/pull/30","diff_url":"https://github.com/hulilabs/ju-components/pull/30.diff","patch_url":"https://github.com/hulilabs/ju-components/pull/30.patch","issue_url":"https://api.github.com/repos/hulilabs/ju-components/issues/30","number":30,"state":"open","locked":false,"title":"Save and proxy flows refactor","user":{"login":"andreybs11","id":1462803,"avatar_url":"https://avatars.githubusercontent.com/u/1462803?v=3","gravatar_id":"","url":"https://api.github.com/users/andreybs11","html_url":"https://github.com/andreybs11","followers_url":"https://api.github.com/users/andreybs11/followers","following_url":"https://api.github.com/users/andreybs11/following{/other_user}","gists_url":"https://api.github.com/users/andreybs11/gists{/gist_id}","starred_url":"https://api.github.com/users/andreybs11/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andreybs11/subscriptions","organizations_url":"https://api.github.com/users/andreybs11/orgs","repos_url":"https://api.github.com/users/andreybs11/repos","events_url":"https://api.github.com/users/andreybs11/events{/privacy}","received_events_url":"https://api.github.com/users/andreybs11/received_events","type":"User","site_admin":false},"body":"Fixes #25, #26, #27, #28, #29","created_at":"2016-02-25T19:55:23Z","updated_at":"2016-03-01T20:38:08Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b93db3cb87b2a2d14ba0b721caaa9271793f1368","assignee":{"login":"jpgarbanzo","id":3778202,"avatar_url":"https://avatars.githubusercontent.com/u/3778202?v=3","gravatar_id":"","url":"https://api.github.com/users/jpgarbanzo","html_url":"https://github.com/jpgarbanzo","followers_url":"https://api.github.com/users/jpgarbanzo/followers","following_url":"https://api.github.com/users/jpgarbanzo/following{/other_user}","gists_url":"https://api.github.com/users/jpgarbanzo/gists{/gist_id}","starred_url":"https://api.github.com/users/jpgarbanzo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jpgarbanzo/subscriptions","organizations_url":"https://api.github.com/users/jpgarbanzo/orgs","repos_url":"https://api.github.com/users/jpgarbanzo/repos","events_url":"https://api.github.com/users/jpgarbanzo/events{/privacy}","received_events_url":"https://api.github.com/users/jpgarbanzo/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/hulilabs/ju-components/milestones/4","html_url":"https://github.com/hulilabs/ju-components/milestones/v1.1.0","labels_url":"https://api.github.com/repos/hulilabs/ju-components/milestones/4/labels","id":1597980,"number":4,"title":"v1.1.0","description":"","creator":{"login":"jpgarbanzo","id":3778202,"avatar_url":"https://avatars.githubusercontent.com/u/3778202?v=3","gravatar_id":"","url":"https://api.github.com/users/jpgarbanzo","html_url":"https://github.com/jpgarbanzo","followers_url":"https://api.github.com/users/jpgarbanzo/followers","following_url":"https://api.github.com/users/jpgarbanzo/following{/other_user}","gists_url":"https://api.github.com/users/jpgarbanzo/gists{/gist_id}","starred_url":"https://api.github.com/users/jpgarbanzo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jpgarbanzo/subscriptions","organizations_url":"https://api.github.com/users/jpgarbanzo/orgs","repos_url":"https://api.github.com/users/jpgarbanzo/repos","events_url":"https://api.github.com/users/jpgarbanzo/events{/privacy}","received_events_url":"https://api.github.com/users/jpgarbanzo/received_events","type":"User","site_admin":false},"open_issues":6,"closed_issues":0,"state":"open","created_at":"2016-02-22T19:43:11Z","updated_at":"2016-02-25T19:55:23Z","due_on":null,"closed_at":null},"commits_url":"https://api.github.com/repos/hulilabs/ju-components/pulls/30/commits","review_comments_url":"https://api.github.com/repos/hulilabs/ju-components/pulls/30/comments","review_comment_url":"https://api.github.com/repos/hulilabs/ju-components/pulls/comments{/number}","comments_url":"https://api.github.com/repos/hulilabs/ju-components/issues/30/comments","statuses_url":"https://api.github.com/repos/hulilabs/ju-components/statuses/c116888010463cc1d14d60bbcbf2a0d0fcbe5d07","head":{"label":"hulilabs:pull-24","ref":"pull-24","sha":"c116888010463cc1d14d60bbcbf2a0d0fcbe5d07","user":{"login":"hulilabs","id":11356221,"avatar_url":"https://avatars.githubusercontent.com/u/11356221?v=3","gravatar_id":"","url":"https://api.github.com/users/hulilabs","html_url":"https://github.com/hulilabs","followers_url":"https://api.github.com/users/hulilabs/followers","following_url":"https://api.github.com/users/hulilabs/following{/other_user}","gists_url":"https://api.github.com/users/hulilabs/gists{/gist_id}","starred_url":"https://api.github.com/users/hulilabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hulilabs/subscriptions","organizations_url":"https://api.github.com/users/hulilabs/orgs","repos_url":"https://api.github.com/users/hulilabs/repos","events_url":"https://api.github.com/users/hulilabs/events{/privacy}","received_events_url":"https://api.github.com/users/hulilabs/received_events","type":"Organization","site_admin":false},"repo":{"id":45425880,"name":"ju-components","full_name":"hulilabs/ju-components","owner":{"login":"hulilabs","id":11356221,"avatar_url":"https://avatars.githubusercontent.com/u/11356221?v=3","gravatar_id":"","url":"https://api.github.com/users/hulilabs","html_url":"https://github.com/hulilabs","followers_url":"https://api.github.com/users/hulilabs/followers","following_url":"https://api.github.com/users/hulilabs/following{/other_user}","gists_url":"https://api.github.com/users/hulilabs/gists{/gist_id}","starred_url":"https://api.github.com/users/hulilabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hulilabs/subscriptions","organizations_url":"https://api.github.com/users/hulilabs/orgs","repos_url":"https://api.github.com/users/hulilabs/repos","events_url":"https://api.github.com/users/hulilabs/events{/privacy}","received_events_url":"https://api.github.com/users/hulilabs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/hulilabs/ju-components","description":"","fork":false,"url":"https://api.github.com/repos/hulilabs/ju-components","forks_url":"https://api.github.com/repos/hulilabs/ju-components/forks","keys_url":"https://api.github.com/repos/hulilabs/ju-components/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hulilabs/ju-components/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hulilabs/ju-components/teams","hooks_url":"https://api.github.com/repos/hulilabs/ju-components/hooks","issue_events_url":"https://api.github.com/repos/hulilabs/ju-components/issues/events{/number}","events_url":"https://api.github.com/repos/hulilabs/ju-components/events","assignees_url":"https://api.github.com/repos/hulilabs/ju-components/assignees{/user}","branches_url":"https://api.github.com/repos/hulilabs/ju-components/branches{/branch}","tags_url":"https://api.github.com/repos/hulilabs/ju-components/tags","blobs_url":"https://api.github.com/repos/hulilabs/ju-components/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hulilabs/ju-components/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hulilabs/ju-components/git/refs{/sha}","trees_url":"https://api.github.com/repos/hulilabs/ju-components/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hulilabs/ju-components/statuses/{sha}","languages_url":"https://api.github.com/repos/hulilabs/ju-components/languages","stargazers_url":"https://api.github.com/repos/hulilabs/ju-components/stargazers","contributors_url":"https://api.github.com/repos/hulilabs/ju-components/contributors","subscribers_url":"https://api.github.com/repos/hulilabs/ju-components/subscribers","subscription_url":"https://api.github.com/repos/hulilabs/ju-components/subscription","commits_url":"https://api.github.com/repos/hulilabs/ju-components/commits{/sha}","git_commits_url":"https://api.github.com/repos/hulilabs/ju-components/git/commits{/sha}","comments_url":"https://api.github.com/repos/hulilabs/ju-components/comments{/number}","issue_comment_url":"https://api.github.com/repos/hulilabs/ju-components/issues/comments{/number}","contents_url":"https://api.github.com/repos/hulilabs/ju-components/contents/{+path}","compare_url":"https://api.github.com/repos/hulilabs/ju-components/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hulilabs/ju-components/merges","archive_url":"https://api.github.com/repos/hulilabs/ju-components/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hulilabs/ju-components/downloads","issues_url":"https://api.github.com/repos/hulilabs/ju-components/issues{/number}","pulls_url":"https://api.github.com/repos/hulilabs/ju-components/pulls{/number}","milestones_url":"https://api.github.com/repos/hulilabs/ju-components/milestones{/number}","notifications_url":"https://api.github.com/repos/hulilabs/ju-components/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hulilabs/ju-components/labels{/name}","releases_url":"https://api.github.com/repos/hulilabs/ju-components/releases{/id}","deployments_url":"https://api.github.com/repos/hulilabs/ju-components/deployments","created_at":"2015-11-02T22:20:09Z","updated_at":"2016-01-30T00:34:54Z","pushed_at":"2016-02-25T19:55:23Z","git_url":"git://github.com/hulilabs/ju-components.git","ssh_url":"git@github.com:hulilabs/ju-components.git","clone_url":"https://github.com/hulilabs/ju-components.git","svn_url":"https://github.com/hulilabs/ju-components","homepage":null,"size":142,"stargazers_count":3,"watchers_count":3,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":8,"forks":0,"open_issues":8,"watchers":3,"default_branch":"master"}},"base":{"label":"hulilabs:v1.1.0","ref":"v1.1.0","sha":"d8abbb8b74a4072f464b790da86d5e0c4926f165","user":{"login":"hulilabs","id":11356221,"avatar_url":"https://avatars.githubusercontent.com/u/11356221?v=3","gravatar_id":"","url":"https://api.github.com/users/hulilabs","html_url":"https://github.com/hulilabs","followers_url":"https://api.github.com/users/hulilabs/followers","following_url":"https://api.github.com/users/hulilabs/following{/other_user}","gists_url":"https://api.github.com/users/hulilabs/gists{/gist_id}","starred_url":"https://api.github.com/users/hulilabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hulilabs/subscriptions","organizations_url":"https://api.github.com/users/hulilabs/orgs","repos_url":"https://api.github.com/users/hulilabs/repos","events_url":"https://api.github.com/users/hulilabs/events{/privacy}","received_events_url":"https://api.github.com/users/hulilabs/received_events","type":"Organization","site_admin":false},"repo":{"id":45425880,"name":"ju-components","full_name":"hulilabs/ju-components","owner":{"login":"hulilabs","id":11356221,"avatar_url":"https://avatars.githubusercontent.com/u/11356221?v=3","gravatar_id":"","url":"https://api.github.com/users/hulilabs","html_url":"https://github.com/hulilabs","followers_url":"https://api.github.com/users/hulilabs/followers","following_url":"https://api.github.com/users/hulilabs/following{/other_user}","gists_url":"https://api.github.com/users/hulilabs/gists{/gist_id}","starred_url":"https://api.github.com/users/hulilabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hulilabs/subscriptions","organizations_url":"https://api.github.com/users/hulilabs/orgs","repos_url":"https://api.github.com/users/hulilabs/repos","events_url":"https://api.github.com/users/hulilabs/events{/privacy}","received_events_url":"https://api.github.com/users/hulilabs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/hulilabs/ju-components","description":"","fork":false,"url":"https://api.github.com/repos/hulilabs/ju-components","forks_url":"https://api.github.com/repos/hulilabs/ju-components/forks","keys_url":"https://api.github.com/repos/hulilabs/ju-components/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hulilabs/ju-components/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hulilabs/ju-components/teams","hooks_url":"https://api.github.com/repos/hulilabs/ju-components/hooks","issue_events_url":"https://api.github.com/repos/hulilabs/ju-components/issues/events{/number}","events_url":"https://api.github.com/repos/hulilabs/ju-components/events","assignees_url":"https://api.github.com/repos/hulilabs/ju-components/assignees{/user}","branches_url":"https://api.github.com/repos/hulilabs/ju-components/branches{/branch}","tags_url":"https://api.github.com/repos/hulilabs/ju-components/tags","blobs_url":"https://api.github.com/repos/hulilabs/ju-components/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hulilabs/ju-components/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hulilabs/ju-components/git/refs{/sha}","trees_url":"https://api.github.com/repos/hulilabs/ju-components/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hulilabs/ju-components/statuses/{sha}","languages_url":"https://api.github.com/repos/hulilabs/ju-components/languages","stargazers_url":"https://api.github.com/repos/hulilabs/ju-components/stargazers","contributors_url":"https://api.github.com/repos/hulilabs/ju-components/contributors","subscribers_url":"https://api.github.com/repos/hulilabs/ju-components/subscribers","subscription_url":"https://api.github.com/repos/hulilabs/ju-components/subscription","commits_url":"https://api.github.com/repos/hulilabs/ju-components/commits{/sha}","git_commits_url":"https://api.github.com/repos/hulilabs/ju-components/git/commits{/sha}","comments_url":"https://api.github.com/repos/hulilabs/ju-components/comments{/number}","issue_comment_url":"https://api.github.com/repos/hulilabs/ju-components/issues/comments{/number}","contents_url":"https://api.github.com/repos/hulilabs/ju-components/contents/{+path}","compare_url":"https://api.github.com/repos/hulilabs/ju-components/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hulilabs/ju-components/merges","archive_url":"https://api.github.com/repos/hulilabs/ju-components/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hulilabs/ju-components/downloads","issues_url":"https://api.github.com/repos/hulilabs/ju-components/issues{/number}","pulls_url":"https://api.github.com/repos/hulilabs/ju-components/pulls{/number}","milestones_url":"https://api.github.com/repos/hulilabs/ju-components/milestones{/number}","notifications_url":"https://api.github.com/repos/hulilabs/ju-components/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hulilabs/ju-components/labels{/name}","releases_url":"https://api.github.com/repos/hulilabs/ju-components/releases{/id}","deployments_url":"https://api.github.com/repos/hulilabs/ju-components/deployments","created_at":"2015-11-02T22:20:09Z","updated_at":"2016-01-30T00:34:54Z","pushed_at":"2016-02-25T19:55:23Z","git_url":"git://github.com/hulilabs/ju-components.git","ssh_url":"git@github.com:hulilabs/ju-components.git","clone_url":"https://github.com/hulilabs/ju-components.git","svn_url":"https://github.com/hulilabs/ju-components","homepage":null,"size":142,"stargazers_count":3,"watchers_count":3,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":8,"forks":0,"open_issues":8,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/hulilabs/ju-components/pulls/30"},"html":{"href":"https://github.com/hulilabs/ju-components/pull/30"},"issue":{"href":"https://api.github.com/repos/hulilabs/ju-components/issues/30"},"comments":{"href":"https://api.github.com/repos/hulilabs/ju-components/issues/30/comments"},"review_comments":{"href":"https://api.github.com/repos/hulilabs/ju-components/pulls/30/comments"},"review_comment":{"href":"https://api.github.com/repos/hulilabs/ju-components/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/hulilabs/ju-components/pulls/30/commits"},"statuses":{"href":"https://api.github.com/repos/hulilabs/ju-components/statuses/c116888010463cc1d14d60bbcbf2a0d0fcbe5d07"}}}}