mirror of
https://github.com/sparksuite/simplemde-markdown-editor.git
synced 2025-09-24 16:40:55 -06:00
avoid modifying parameters
This commit is contained in:
parent
bd15214ef7
commit
82ec7e6249
File diff suppressed because one or more lines are too long
@ -16761,12 +16761,9 @@ var createSep = function createSep() {
|
|||||||
|
|
||||||
var createTootlip = function createTootlip(title, action, shortcuts) {
|
var createTootlip = function createTootlip(title, action, shortcuts) {
|
||||||
if (!action) return title;
|
if (!action) return title;
|
||||||
var actionName = _metadata.bindings.find(action);
|
if (!shortcuts[_metadata.bindings.find(action)]) return title;
|
||||||
if (actionName && shortcuts[actionName]) {
|
|
||||||
title += ' ( ' + _utils2.default.fixShortcut(shortcuts[actionName]) + ' )';
|
|
||||||
}
|
|
||||||
|
|
||||||
return title;
|
return title + ' ( ' + _utils2.default.fixShortcut(shortcuts[actionName]) + ' )';
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
2
dist/simplemde.min.js
vendored
2
dist/simplemde.min.js
vendored
File diff suppressed because one or more lines are too long
@ -53,12 +53,9 @@ const createSep = () => {
|
|||||||
|
|
||||||
const createTootlip = (title, action, shortcuts) => {
|
const createTootlip = (title, action, shortcuts) => {
|
||||||
if(!action) return title
|
if(!action) return title
|
||||||
const actionName = bindings.find(action)
|
if(!shortcuts[bindings.find(action)]) return title
|
||||||
if(actionName && shortcuts[actionName]) {
|
|
||||||
title += ` ( ${utils.fixShortcut(shortcuts[actionName])} )`
|
|
||||||
}
|
|
||||||
|
|
||||||
return title;
|
return `${title} ( ${utils.fixShortcut(shortcuts[actionName])} )`
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user