Shorten function name to enableTabMiddleClick
This commit is contained in:
parent
ae42c58ada
commit
154b93c94d
1 changed files with 2 additions and 2 deletions
|
@ -313,7 +313,7 @@ define([
|
|||
});
|
||||
};
|
||||
|
||||
var enableCloseTabOnMiddleClick = function() {
|
||||
var enableTabMiddleClick = function() {
|
||||
var tabContainer = document.find(".tabs");
|
||||
tabContainer.on("click", function(e) {
|
||||
if (!e.target.matches(".tab")) return;
|
||||
|
@ -332,7 +332,7 @@ define([
|
|||
addTab("");
|
||||
renderTabs();
|
||||
enableTabDragDrop();
|
||||
enableCloseTabOnMiddleClick();
|
||||
enableTabMiddleClick();
|
||||
reset();
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue