lint compliance

pull/1/head
ansuz 4 years ago
parent d17265f2eb
commit 5c4e2bbfb4

@ -48,6 +48,7 @@ define([
$hist.addClass('cp-smallpatch'); $hist.addClass('cp-smallpatch');
$hist.addClass('cp-history-oo'); $hist.addClass('cp-history-oo');
var $bottom = $toolbar.find('.cp-toolbar-bottom'); var $bottom = $toolbar.find('.cp-toolbar-bottom');
var Messages = common.Messages;
var getVersion = function () { var getVersion = function () {
var major = sortedCp.length - cpIndex; var major = sortedCp.length - cpIndex;
@ -137,8 +138,6 @@ define([
config.setHistory(true); config.setHistory(true);
var Messages = common.Messages;
$hist.html('').css('display', 'flex'); $hist.html('').css('display', 'flex');
$bottom.hide(); $bottom.hide();

@ -392,7 +392,7 @@ define([
}; };
*/ */
var makeSnapshot = function (title) { var makeSnapshot = function (title, $input) {
var idx = getIndex(c); var idx = getIndex(c);
if (!config.getLastMetadata || !config.setLastMetadata) { return; } if (!config.getLastMetadata || !config.setLastMetadata) { return; }
try { try {
@ -622,7 +622,7 @@ define([
onClick: function () { onClick: function () {
var val = $input.val(); var val = $input.val();
if (!val) { return true; } if (!val) { return true; }
makeSnapshot(val); makeSnapshot(val, $input);
}, },
keys: [], keys: [],
}]; }];

Loading…
Cancel
Save