Skip to content

Commit bc04eac

Browse files
committed
linted
1 parent 65ae945 commit bc04eac

5 files changed

Lines changed: 118 additions & 103 deletions

File tree

src/tabs.js

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,10 @@ UI.tabs.tabWidget = function (options) {
8484
*/
8585
const rootElement = dom.createElement('div') // 20200117a
8686

87-
rootElement.style = 'display: flex; height: 100%; width: 100%; flex-direction: ' +
88-
(vertical ? 'row' : 'column') + (flipped ? '-reverse;' : ';')
87+
rootElement.style =
88+
'display: flex; height: 100%; width: 100%; flex-direction: ' +
89+
(vertical ? 'row' : 'column') +
90+
(flipped ? '-reverse;' : ';')
8991

9092
navElement = rootElement.appendChild(dom.createElement('nav'))
9193
navElement.style = 'margin: 0;'
@@ -94,10 +96,11 @@ UI.tabs.tabWidget = function (options) {
9496

9597
mainElement.setAttribute('style', 'margin: 0; width:100%; height: 100%;') // override tabbedtab.css
9698
tabContainer = navElement.appendChild(dom.createElement('ul'))
97-
tabContainer.style = 'list-style-type: none;' + // No bullet please ...
98-
'display: flex; height: 100%; width: 100%; flex-direction: ' +
99-
(vertical ? 'column' : 'row') // + (flipped ? '-reverse;' : ';')
100-
// Never flip the direction of readuing the tabs, assuming people read left to right and top to bottom
99+
tabContainer.style =
100+
'list-style-type: none;' + // No bullet please ...
101+
'display: flex; height: 100%; width: 100%; flex-direction: ' +
102+
(vertical ? 'column' : 'row') // + (flipped ? '-reverse;' : ';')
103+
// Never flip the direction of readuing the tabs, assuming people read left to right and top to bottom
101104

102105
tabElement = 'li'
103106

@@ -109,7 +112,8 @@ UI.tabs.tabWidget = function (options) {
109112
if (options.items) return options.items
110113
if (options.ordered !== false) {
111114
// default to true
112-
var list = kb.the(subject, options.predicate)
115+
console.log('KB ' + JSON.stringify(kb))
116+
var list = kb.the(subject, options)
113117
return list.elements
114118
} else {
115119
return kb.each(subject, options.predicate)

0 commit comments

Comments
 (0)