mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-31 21:19:21 +03:00
Small fixes (#70)
This commit is contained in:
parent
fbf17aa6f3
commit
83036c8341
10 changed files with 215 additions and 212 deletions
|
|
@ -28,7 +28,7 @@ function Selector(oKoList, oKoSelectedItem,
|
|||
this.selectedItem = oKoSelectedItem;
|
||||
this.selectedItemUseCallback = true;
|
||||
|
||||
this.itemSelectedTrottle = _.throttle(_.bind(this.itemSelected, this), 300);
|
||||
this.itemSelectedThrottle = _.debounce(_.bind(this.itemSelected, this), 300);
|
||||
|
||||
this.listChecked.subscribe(function (aItems) {
|
||||
if (0 < aItems.length)
|
||||
|
|
@ -61,7 +61,7 @@ function Selector(oKoList, oKoSelectedItem,
|
|||
|
||||
if (this.selectedItemUseCallback)
|
||||
{
|
||||
this.itemSelectedTrottle(oItem);
|
||||
this.itemSelectedThrottle(oItem);
|
||||
}
|
||||
}
|
||||
else if (this.selectedItemUseCallback)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue