Small fixes (#70)

This commit is contained in:
RainLoop Team 2014-04-10 14:38:04 +04:00
parent fbf17aa6f3
commit 83036c8341
10 changed files with 215 additions and 212 deletions

View file

@ -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)