($container, devtools, resources, type)
| 12 | |
| 13 | export default class Storage { |
| 14 | constructor($container, devtools, resources, type) { |
| 15 | this._type = type |
| 16 | this._$container = $container |
| 17 | this._devtools = devtools |
| 18 | this._resources = resources |
| 19 | this._selectedItem = null |
| 20 | this._storeData = [] |
| 21 | |
| 22 | this._initTpl() |
| 23 | this._dataGrid = new LunaDataGrid(this._$dataGrid.get(0), { |
| 24 | columns: [ |
| 25 | { |
| 26 | id: 'key', |
| 27 | title: 'Key', |
| 28 | weight: 30, |
| 29 | }, |
| 30 | { |
| 31 | id: 'value', |
| 32 | title: 'Value', |
| 33 | weight: 90, |
| 34 | }, |
| 35 | ], |
| 36 | minHeight: 60, |
| 37 | maxHeight: 223, |
| 38 | }) |
| 39 | |
| 40 | this._bindEvent() |
| 41 | } |
| 42 | destroy() { |
| 43 | emitter.off(emitter.SCALE, this._updateGridHeight) |
| 44 | } |
nothing calls this directly
no test coverage detected