{"action":"created","comment":{"url":"https://api.github.com/repos/Saleslogix/argos-sdk/pulls/comments/36110532","id":36110532,"diff_hunk":"@@ -0,0 +1,279 @@\n+/**\n+ * @class argos.TabWidget\n+ * @alternateClassName TabWidget\n+ */\n+import declare from 'dojo/_base/declare';\n+import lang from 'dojo/_base/lang';\n+import array from 'dojo/_base/array';\n+import domConstruct from 'dojo/dom-construct';\n+import query from 'dojo/query';\n+import _Templated from 'argos/_Templated';\n+\n+const __class = declare('argos.TabWidget', [_Templated], {\n+  /**\n+   * @property {Simplate}\n+   * HTML that starts a new tab list\n+   */\n+  tabContentTemplate: new Simplate([\n+    '<div class=\"panel-content\" data-dojo-attach-point=\"contentNode\">',\n+    '{%! $.tabListTemplate %}',\n+    '</div>',\n+  ]),\n+  /**\n+   * @property {Simplate}\n+   * HTML that starts a new tab list\n+   */\n+  tabListTemplate: new Simplate([\n+    '<ul class=\"tab-list\" data-dojo-attach-point=\"tabList\">',\n+    '</ul>',\n+  ]),\n+  /**\n+   * @property {Simplate}\n+   * HTML that starts a new More tab list\n+   */\n+  moreTabListTemplate: new Simplate([\n+    '<ul class=\"more-tab-dropdown\" data-dojo-attach-point=\"moreTabList\">',\n+    '</ul>',\n+  ]),\n+  /**\n+   * @property {Simplate}\n+   * HTML that starts a new animation bar\n+   */\n+  tabListAnimTemplate: new Simplate([\n+    '<div class=\"tab-focus-indicator\"></div>',\n+    '<div class=\"animated-bar\"></div>',\n+  ]),\n+  /**\n+   * @property {Simplate}\n+   * HTML that creates a new tab to be placed in the tab list\n+   *\n+   * `$` => the view instance\n+   */\n+  tabListItemTemplate: new Simplate([\n+    '<li class=\"tab\" data-action=\"changeTab\">',\n+    '{%: ($.title || $.options.title) %}',\n+    '</li>',\n+  ]),\n+  /**\n+   * @property {Simplate}\n+   * HTML that creates a new tab to be placed in the more tab list\n+   *\n+   * `$` => the view instance\n+   */\n+  moreTabItemTemplate: new Simplate([\n+    '<li class=\"tab more-item\" data-action=\"toggleDropDown\">',\n+    '{%: ($.title || $.options.title) %}',\n+    '<span class=\"fa fa-angle-right\"></span>',\n+    '</li>',\n+  ]),\n+\n+  /**\n+   * @cfg {String}\n+   * More text that is used as the overflow tab for the tab list\n+   */\n+  moreText: 'More',\n+  /**\n+   * @property {li}\n+   * Current tab (html element li) that the view is on\n+   */\n+  currentTab: null,\n+  /**\n+   * @property {bool}\n+   * Boolean value for whether tabs caused an overflow in the tab list\n+   */\n+  inOverflow: false,\n+  /**\n+   * @property {int}\n+   * int value representing the index at which the more tab starts (used to place the remaining tabs into the more tab)\n+   */\n+  tabMoreIndex: null,\n+  /**\n+   * @property {Array}\n+   * Mapping of tab to the section\n+   */\n+  tabMapping: null,\n+\n+  /**\n+   * Changes the tab state in the tab list and changes visibility of content.\n+   * @param {Object} The event type and source.\n+   * @private\n+   */\n+  changeTab: function changeTab(params) {\n+    const tab = params.$source;","path":"src/TabWidget.js","position":102,"original_position":102,"commit_id":"dbe5831600beac4d89f347c56bc74810b1492058","original_commit_id":"dbe5831600beac4d89f347c56bc74810b1492058","user":{"login":"jbest84","id":354553,"avatar_url":"https://avatars.githubusercontent.com/u/354553?v=3","gravatar_id":"","url":"https://api.github.com/users/jbest84","html_url":"https://github.com/jbest84","followers_url":"https://api.github.com/users/jbest84/followers","following_url":"https://api.github.com/users/jbest84/following{/other_user}","gists_url":"https://api.github.com/users/jbest84/gists{/gist_id}","starred_url":"https://api.github.com/users/jbest84/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jbest84/subscriptions","organizations_url":"https://api.github.com/users/jbest84/orgs","repos_url":"https://api.github.com/users/jbest84/repos","events_url":"https://api.github.com/users/jbest84/events{/privacy}","received_events_url":"https://api.github.com/users/jbest84/received_events","type":"User","site_admin":false},"body":"I would suggest we rename this to the clicked or selectedTab","created_at":"2015-08-03T17:48:10Z","updated_at":"2015-08-03T17:48:10Z","html_url":"https://github.com/Saleslogix/argos-sdk/pull/104#discussion_r36110532","pull_request_url":"https://api.github.com/repos/Saleslogix/argos-sdk/pulls/104","_links":{"self":{"href":"https://api.github.com/repos/Saleslogix/argos-sdk/pulls/comments/36110532"},"html":{"href":"https://github.com/Saleslogix/argos-sdk/pull/104#discussion_r36110532"},"pull_request":{"href":"https://api.github.com/repos/Saleslogix/argos-sdk/pulls/104"}}},"pull_request":{"url":"https://api.github.com/repos/Saleslogix/argos-sdk/pulls/104","id":41484074,"html_url":"https://github.com/Saleslogix/argos-sdk/pull/104","diff_url":"https://github.com/Saleslogix/argos-sdk/pull/104.diff","patch_url":"https://github.com/Saleslogix/argos-sdk/pull/104.patch","issue_url":"https://api.github.com/repos/Saleslogix/argos-sdk/issues/104","number":104,"state":"open","locked":false,"title":"Topic tabs widget","user":{"login":"tlwalla1","id":3712665,"avatar_url":"https://avatars.githubusercontent.com/u/3712665?v=3","gravatar_id":"","url":"https://api.github.com/users/tlwalla1","html_url":"https://github.com/tlwalla1","followers_url":"https://api.github.com/users/tlwalla1/followers","following_url":"https://api.github.com/users/tlwalla1/following{/other_user}","gists_url":"https://api.github.com/users/tlwalla1/gists{/gist_id}","starred_url":"https://api.github.com/users/tlwalla1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tlwalla1/subscriptions","organizations_url":"https://api.github.com/users/tlwalla1/orgs","repos_url":"https://api.github.com/users/tlwalla1/repos","events_url":"https://api.github.com/users/tlwalla1/events{/privacy}","received_events_url":"https://api.github.com/users/tlwalla1/received_events","type":"User","site_admin":false},"body":"@jbest84 @CHenrie @stdowns Please review.","created_at":"2015-08-03T16:20:36Z","updated_at":"2015-08-03T17:48:10Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f9f3bcbe6914ebcbcedf32cdf8304b2863e1aec8","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Saleslogix/argos-sdk/pulls/104/commits","review_comments_url":"https://api.github.com/repos/Saleslogix/argos-sdk/pulls/104/comments","review_comment_url":"https://api.github.com/repos/Saleslogix/argos-sdk/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Saleslogix/argos-sdk/issues/104/comments","statuses_url":"https://api.github.com/repos/Saleslogix/argos-sdk/statuses/dbe5831600beac4d89f347c56bc74810b1492058","head":{"label":"Saleslogix:topic-tabsWidget","ref":"topic-tabsWidget","sha":"dbe5831600beac4d89f347c56bc74810b1492058","user":{"login":"Saleslogix","id":176955,"avatar_url":"https://avatars.githubusercontent.com/u/176955?v=3","gravatar_id":"","url":"https://api.github.com/users/Saleslogix","html_url":"https://github.com/Saleslogix","followers_url":"https://api.github.com/users/Saleslogix/followers","following_url":"https://api.github.com/users/Saleslogix/following{/other_user}","gists_url":"https://api.github.com/users/Saleslogix/gists{/gist_id}","starred_url":"https://api.github.com/users/Saleslogix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Saleslogix/subscriptions","organizations_url":"https://api.github.com/users/Saleslogix/orgs","repos_url":"https://api.github.com/users/Saleslogix/repos","events_url":"https://api.github.com/users/Saleslogix/events{/privacy}","received_events_url":"https://api.github.com/users/Saleslogix/received_events","type":"Organization","site_admin":false},"repo":{"id":9682918,"name":"argos-sdk","full_name":"Saleslogix/argos-sdk","owner":{"login":"Saleslogix","id":176955,"avatar_url":"https://avatars.githubusercontent.com/u/176955?v=3","gravatar_id":"","url":"https://api.github.com/users/Saleslogix","html_url":"https://github.com/Saleslogix","followers_url":"https://api.github.com/users/Saleslogix/followers","following_url":"https://api.github.com/users/Saleslogix/following{/other_user}","gists_url":"https://api.github.com/users/Saleslogix/gists{/gist_id}","starred_url":"https://api.github.com/users/Saleslogix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Saleslogix/subscriptions","organizations_url":"https://api.github.com/users/Saleslogix/orgs","repos_url":"https://api.github.com/users/Saleslogix/repos","events_url":"https://api.github.com/users/Saleslogix/events{/privacy}","received_events_url":"https://api.github.com/users/Saleslogix/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Saleslogix/argos-sdk","description":"Framework for creating mobile SData clients using HTML5, JavaScript and CSS","fork":false,"url":"https://api.github.com/repos/Saleslogix/argos-sdk","forks_url":"https://api.github.com/repos/Saleslogix/argos-sdk/forks","keys_url":"https://api.github.com/repos/Saleslogix/argos-sdk/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Saleslogix/argos-sdk/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Saleslogix/argos-sdk/teams","hooks_url":"https://api.github.com/repos/Saleslogix/argos-sdk/hooks","issue_events_url":"https://api.github.com/repos/Saleslogix/argos-sdk/issues/events{/number}","events_url":"https://api.github.com/repos/Saleslogix/argos-sdk/events","assignees_url":"https://api.github.com/repos/Saleslogix/argos-sdk/assignees{/user}","branches_url":"https://api.github.com/repos/Saleslogix/argos-sdk/branches{/branch}","tags_url":"https://api.github.com/repos/Saleslogix/argos-sdk/tags","blobs_url":"https://api.github.com/repos/Saleslogix/argos-sdk/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Saleslogix/argos-sdk/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Saleslogix/argos-sdk/git/refs{/sha}","trees_url":"https://api.github.com/repos/Saleslogix/argos-sdk/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Saleslogix/argos-sdk/statuses/{sha}","languages_url":"https://api.github.com/repos/Saleslogix/argos-sdk/languages","stargazers_url":"https://api.github.com/repos/Saleslogix/argos-sdk/stargazers","contributors_url":"https://api.github.com/repos/Saleslogix/argos-sdk/contributors","subscribers_url":"https://api.github.com/repos/Saleslogix/argos-sdk/subscribers","subscription_url":"https://api.github.com/repos/Saleslogix/argos-sdk/subscription","commits_url":"https://api.github.com/repos/Saleslogix/argos-sdk/commits{/sha}","git_commits_url":"https://api.github.com/repos/Saleslogix/argos-sdk/git/commits{/sha}","comments_url":"https://api.github.com/repos/Saleslogix/argos-sdk/comments{/number}","issue_comment_url":"https://api.github.com/repos/Saleslogix/argos-sdk/issues/comments{/number}","contents_url":"https://api.github.com/repos/Saleslogix/argos-sdk/contents/{+path}","compare_url":"https://api.github.com/repos/Saleslogix/argos-sdk/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Saleslogix/argos-sdk/merges","archive_url":"https://api.github.com/repos/Saleslogix/argos-sdk/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Saleslogix/argos-sdk/downloads","issues_url":"https://api.github.com/repos/Saleslogix/argos-sdk/issues{/number}","pulls_url":"https://api.github.com/repos/Saleslogix/argos-sdk/pulls{/number}","milestones_url":"https://api.github.com/repos/Saleslogix/argos-sdk/milestones{/number}","notifications_url":"https://api.github.com/repos/Saleslogix/argos-sdk/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Saleslogix/argos-sdk/labels{/name}","releases_url":"https://api.github.com/repos/Saleslogix/argos-sdk/releases{/id}","created_at":"2013-04-25T22:35:56Z","updated_at":"2015-05-06T00:20:10Z","pushed_at":"2015-08-03T16:21:14Z","git_url":"git://github.com/Saleslogix/argos-sdk.git","ssh_url":"git@github.com:Saleslogix/argos-sdk.git","clone_url":"https://github.com/Saleslogix/argos-sdk.git","svn_url":"https://github.com/Saleslogix/argos-sdk","homepage":"http://saleslogix.github.io/argos/","size":75887,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":1,"forks":3,"open_issues":1,"watchers":0,"default_branch":"develop"}},"base":{"label":"Saleslogix:develop","ref":"develop","sha":"23b6ceb8fa2cbfd1a3b3580c044b629dd9305427","user":{"login":"Saleslogix","id":176955,"avatar_url":"https://avatars.githubusercontent.com/u/176955?v=3","gravatar_id":"","url":"https://api.github.com/users/Saleslogix","html_url":"https://github.com/Saleslogix","followers_url":"https://api.github.com/users/Saleslogix/followers","following_url":"https://api.github.com/users/Saleslogix/following{/other_user}","gists_url":"https://api.github.com/users/Saleslogix/gists{/gist_id}","starred_url":"https://api.github.com/users/Saleslogix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Saleslogix/subscriptions","organizations_url":"https://api.github.com/users/Saleslogix/orgs","repos_url":"https://api.github.com/users/Saleslogix/repos","events_url":"https://api.github.com/users/Saleslogix/events{/privacy}","received_events_url":"https://api.github.com/users/Saleslogix/received_events","type":"Organization","site_admin":false},"repo":{"id":9682918,"name":"argos-sdk","full_name":"Saleslogix/argos-sdk","owner":{"login":"Saleslogix","id":176955,"avatar_url":"https://avatars.githubusercontent.com/u/176955?v=3","gravatar_id":"","url":"https://api.github.com/users/Saleslogix","html_url":"https://github.com/Saleslogix","followers_url":"https://api.github.com/users/Saleslogix/followers","following_url":"https://api.github.com/users/Saleslogix/following{/other_user}","gists_url":"https://api.github.com/users/Saleslogix/gists{/gist_id}","starred_url":"https://api.github.com/users/Saleslogix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Saleslogix/subscriptions","organizations_url":"https://api.github.com/users/Saleslogix/orgs","repos_url":"https://api.github.com/users/Saleslogix/repos","events_url":"https://api.github.com/users/Saleslogix/events{/privacy}","received_events_url":"https://api.github.com/users/Saleslogix/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Saleslogix/argos-sdk","description":"Framework for creating mobile SData clients using HTML5, JavaScript and CSS","fork":false,"url":"https://api.github.com/repos/Saleslogix/argos-sdk","forks_url":"https://api.github.com/repos/Saleslogix/argos-sdk/forks","keys_url":"https://api.github.com/repos/Saleslogix/argos-sdk/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Saleslogix/argos-sdk/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Saleslogix/argos-sdk/teams","hooks_url":"https://api.github.com/repos/Saleslogix/argos-sdk/hooks","issue_events_url":"https://api.github.com/repos/Saleslogix/argos-sdk/issues/events{/number}","events_url":"https://api.github.com/repos/Saleslogix/argos-sdk/events","assignees_url":"https://api.github.com/repos/Saleslogix/argos-sdk/assignees{/user}","branches_url":"https://api.github.com/repos/Saleslogix/argos-sdk/branches{/branch}","tags_url":"https://api.github.com/repos/Saleslogix/argos-sdk/tags","blobs_url":"https://api.github.com/repos/Saleslogix/argos-sdk/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Saleslogix/argos-sdk/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Saleslogix/argos-sdk/git/refs{/sha}","trees_url":"https://api.github.com/repos/Saleslogix/argos-sdk/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Saleslogix/argos-sdk/statuses/{sha}","languages_url":"https://api.github.com/repos/Saleslogix/argos-sdk/languages","stargazers_url":"https://api.github.com/repos/Saleslogix/argos-sdk/stargazers","contributors_url":"https://api.github.com/repos/Saleslogix/argos-sdk/contributors","subscribers_url":"https://api.github.com/repos/Saleslogix/argos-sdk/subscribers","subscription_url":"https://api.github.com/repos/Saleslogix/argos-sdk/subscription","commits_url":"https://api.github.com/repos/Saleslogix/argos-sdk/commits{/sha}","git_commits_url":"https://api.github.com/repos/Saleslogix/argos-sdk/git/commits{/sha}","comments_url":"https://api.github.com/repos/Saleslogix/argos-sdk/comments{/number}","issue_comment_url":"https://api.github.com/repos/Saleslogix/argos-sdk/issues/comments{/number}","contents_url":"https://api.github.com/repos/Saleslogix/argos-sdk/contents/{+path}","compare_url":"https://api.github.com/repos/Saleslogix/argos-sdk/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Saleslogix/argos-sdk/merges","archive_url":"https://api.github.com/repos/Saleslogix/argos-sdk/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Saleslogix/argos-sdk/downloads","issues_url":"https://api.github.com/repos/Saleslogix/argos-sdk/issues{/number}","pulls_url":"https://api.github.com/repos/Saleslogix/argos-sdk/pulls{/number}","milestones_url":"https://api.github.com/repos/Saleslogix/argos-sdk/milestones{/number}","notifications_url":"https://api.github.com/repos/Saleslogix/argos-sdk/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Saleslogix/argos-sdk/labels{/name}","releases_url":"https://api.github.com/repos/Saleslogix/argos-sdk/releases{/id}","created_at":"2013-04-25T22:35:56Z","updated_at":"2015-05-06T00:20:10Z","pushed_at":"2015-08-03T16:21:14Z","git_url":"git://github.com/Saleslogix/argos-sdk.git","ssh_url":"git@github.com:Saleslogix/argos-sdk.git","clone_url":"https://github.com/Saleslogix/argos-sdk.git","svn_url":"https://github.com/Saleslogix/argos-sdk","homepage":"http://saleslogix.github.io/argos/","size":75887,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":1,"forks":3,"open_issues":1,"watchers":0,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/Saleslogix/argos-sdk/pulls/104"},"html":{"href":"https://github.com/Saleslogix/argos-sdk/pull/104"},"issue":{"href":"https://api.github.com/repos/Saleslogix/argos-sdk/issues/104"},"comments":{"href":"https://api.github.com/repos/Saleslogix/argos-sdk/issues/104/comments"},"review_comments":{"href":"https://api.github.com/repos/Saleslogix/argos-sdk/pulls/104/comments"},"review_comment":{"href":"https://api.github.com/repos/Saleslogix/argos-sdk/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Saleslogix/argos-sdk/pulls/104/commits"},"statuses":{"href":"https://api.github.com/repos/Saleslogix/argos-sdk/statuses/dbe5831600beac4d89f347c56bc74810b1492058"}}}}