File tree Expand file tree Collapse file tree 2 files changed +10
-7
lines changed Expand file tree Collapse file tree 2 files changed +10
-7
lines changed Original file line number Diff line number Diff line change 1
1
/**
2
- *
2
+ * @class Api
3
3
* @param {Object } options
4
4
* @param {HTMLElement } options.containerElement - the first ancestor of the Tablist element which has a hidden overflow
5
5
* @param {HTMLElement } options.buttonElement - should be next sibling element of the Tablist element
6
6
* @param {String } [options.tabDisplay="flex"] - default value is "inline-flex". would be display of li tag
7
7
* @param {String } [options.containerDisplay="flex"] - default value is "inline-flex". would be display of containerElement
8
8
*/
9
- const Api = function ( deps , options = { } ) {
10
- this . _setOptions ( options ) ;
9
+ export const Api = function ( options ) {
10
+ const arg = arguments ;
11
+ this . _setOptions ( arg [ 1 ] ) ;
11
12
this . _tablistEl = null ;
12
- const { getElManagementIns} = deps ( ) ;
13
+ const { getElManagementIns} = arg [ 0 ] ( ) ;
13
14
this . _getElManagementIns = getElManagementIns ;
14
15
this . _tabs = null ;
15
16
this . _tabsCount = null ;
@@ -164,4 +165,3 @@ Api.prototype = {
164
165
: this . _findFirstHiddenTabIndexDSCE ( selectedTabInfo , start , stop ) ;
165
166
} ,
166
167
} ;
167
- export default Api ;
Original file line number Diff line number Diff line change 1
1
import ElManagement from './distanceFromFactory.js' ;
2
- import ApiFactory from './api.factory.js' ;
3
- export default ApiFactory . bind ( undefined , ( ) => ( { getElManagementIns : ( param ) => new ElManagement ( param ) } ) ) ;
2
+ import { Api } from './api.factory.js' ;
3
+ /**
4
+ * @type {typeof Api }
5
+ */
6
+ export default Api . bind ( undefined , ( ) => ( { getElManagementIns : ( params ) => new ElManagement ( params ) } ) ) ;
You can’t perform that action at this time.
0 commit comments