Fix lint.

This commit is contained in:
JLiu1272 2022-04-03 18:40:01 -07:00
parent f08b1948a3
commit 73f24cb732
2 changed files with 7 additions and 8 deletions

View File

@ -154,7 +154,7 @@ define([
};
metadataMgr.onChangeLazy(updateMaxWidthSettings);
updateMaxWidthSettings();
}
};
/**
* Wraps a text based on column set by user in setting.
@ -555,11 +555,11 @@ define([
exp.mkMaxWidthSettings = function (metadataMgr) {
module.mkMaxWidthSettings(editor, metadataMgr);
}
};
exp.wrapParagraph = function (CodeMirror, metadataMgr) {
module.wrapParagraph(editor, CodeMirror, metadataMgr);
}
};
exp.getCursor = function () {
var doc = canonicalize(editor.getValue());
@ -647,5 +647,4 @@ define([
};
return module;
});
});

View File

@ -1587,7 +1587,7 @@ define([
'class': 'cp-sidebarlayout-input-block'
}).appendTo($div);
var $cbox = $(UI.createCheckbox('cp-settings-code-max-width'))
var $cbox = $(UI.createCheckbox('cp-settings-code-max-width'));
$cbox.appendTo($container);
var $input = $('<input>', {
@ -1607,13 +1607,13 @@ define([
$input.attr('disabled', !this.checked);
common.setAttribute(['codemirror', hardWrapMaxWidthEnabledKey], this.checked);
}
)
);
common.getAttribute(['codemirror', hardWrapMaxWidthEnabledKey], function (e, val) {
if (e) { return void console.error(e); }
$cbox.find('input').prop("checked", val);
$input.attr("disabled", !val);
})
});
common.getAttribute(['codemirror', key], function (e, val) {
if (e) { return void console.error(e); }