mirror of
https://github.com/JannisX11/blockbench.git
synced 2025-04-12 17:41:57 +08:00
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:
parent
54462727dd
commit
da4f01265d
@ -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;
|
||||
|
@ -911,7 +911,6 @@ Interface.definePanels(() => {
|
||||
}
|
||||
Blockbench.setStatusBarText();
|
||||
if (values_changed) {
|
||||
Undo.addKeyframeCasualties(deleted);
|
||||
Animation.selected.setLength();
|
||||
Undo.finishEdit('Drag keyframes');
|
||||
} else {
|
||||
|
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user