mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-01 21:49:21 +03:00
Drop .actionHandle
This commit is contained in:
parent
57b804f3a3
commit
e1649d0361
4 changed files with 7 additions and 11 deletions
|
|
@ -21,15 +21,13 @@ export class Selector {
|
|||
* @param {koProperty} koFocusedItem
|
||||
* @param {string} sItemSelector
|
||||
* @param {string} sItemCheckedSelector
|
||||
* @param {string} sItemFocusedSelector
|
||||
*/
|
||||
constructor(
|
||||
koList,
|
||||
koSelectedItem,
|
||||
koFocusedItem,
|
||||
sItemSelector,
|
||||
sItemCheckedSelector,
|
||||
sItemFocusedSelector
|
||||
sItemCheckedSelector
|
||||
) {
|
||||
koFocusedItem = (koFocusedItem || ko.observable(null)).extend({ toggleSubscribeProperty: [this, 'focused'] });
|
||||
koSelectedItem = (koSelectedItem || ko.observable(null)).extend({ toggleSubscribeProperty: [null, 'selected'] });
|
||||
|
|
@ -46,7 +44,7 @@ export class Selector {
|
|||
|
||||
this.sItemSelector = sItemSelector;
|
||||
this.sItemCheckedSelector = sItemCheckedSelector;
|
||||
this.sItemFocusedSelector = sItemFocusedSelector;
|
||||
this.sItemFocusedSelector = sItemSelector + '.focused';
|
||||
|
||||
this.sLastUid = '';
|
||||
this.oCallbacks = {};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue