Fix #1368 menu hover texts say "undefined"

Fix #1367 Incorrect cursor in prism editor
Fix #1370 Cant recover some keyframes with undo when they were overlapping
This commit is contained in:
JannisX11 2022-04-10 19:10:04 +02:00
parent 54462727dd
commit da4f01265d
3 changed files with 4 additions and 2 deletions

View File

@ -21,6 +21,7 @@ pre[class*="language-"] {
word-break: normal;
word-wrap: normal;
line-height: 1.5;
cursor: text;
-moz-tab-size: 4;
-o-tab-size: 4;

View File

@ -911,7 +911,6 @@ Interface.definePanels(() => {
}
Blockbench.setStatusBarText();
if (values_changed) {
Undo.addKeyframeCasualties(deleted);
Animation.selected.setLength();
Undo.finishEdit('Drag keyframes');
} else {

View File

@ -606,7 +606,9 @@ $(document).keyup(function(event) {
Interface.createElement = (tag, attributes = {}, content) => {
let el = document.createElement(tag);
for (let key in attributes) {
el.setAttribute(key, attributes[key]);
if (attributes[key] !== undefined) {
el.setAttribute(key, attributes[key]);
}
}
if (typeof content == 'string') el.textContent = content;
if (content instanceof Array) {