mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-01-06 11:04:12 +01:00
Make further use of default parameters.
--HG-- extra : rebase_source : ab666bce7ed7e47c8f1e2bc4145f553da990d319
This commit is contained in:
@@ -408,8 +408,7 @@ var Tabs = Module("tabs", {
|
||||
* @param {number} count How many tabs to remove.
|
||||
* @param {boolean} focusLeftTab Focus the tab to the left of the removed tab.
|
||||
*/
|
||||
remove: function remove(tab, count, focusLeftTab) {
|
||||
count = count || 1;
|
||||
remove: function remove(tab, count = 1, focusLeftTab = false) {
|
||||
let res = this.count > count;
|
||||
|
||||
let tabs = this.visibleTabs;
|
||||
|
||||
Reference in New Issue
Block a user