mirror of
https://github.com/sparksuite/simplemde-markdown-editor.git
synced 2024-06-09 09:22:16 +02: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) {
|
||||
if (!action) return title;
|
||||
var actionName = _metadata.bindings.find(action);
|
||||
if (actionName && shortcuts[actionName]) {
|
||||
title += ' ( ' + _utils2.default.fixShortcut(shortcuts[actionName]) + ' )';
|
||||
}
|
||||
if (!shortcuts[_metadata.bindings.find(action)]) return title;
|
||||
|
||||
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) => {
|
||||
if(!action) return title
|
||||
const actionName = bindings.find(action)
|
||||
if(actionName && shortcuts[actionName]) {
|
||||
title += ` ( ${utils.fixShortcut(shortcuts[actionName])} )`
|
||||
}
|
||||
if(!shortcuts[bindings.find(action)]) return title
|
||||
|
||||
return title;
|
||||
return `${title} ( ${utils.fixShortcut(shortcuts[actionName])} )`
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue