Fix: replaceMetas -> replaceMeta
This commit is contained in:
parent
b4dfe5c836
commit
eef17cc4f8
|
@ -1907,7 +1907,7 @@ function replaceStyle(request) {
|
||||||
if (codeIsUpdated) {
|
if (codeIsUpdated) {
|
||||||
editor.replaceStyle(request.style);
|
editor.replaceStyle(request.style);
|
||||||
} else {
|
} else {
|
||||||
editor.replaceMetas(request.style);
|
editor.replaceMeta(request.style);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -247,7 +247,7 @@ ${section}
|
||||||
return dirty.isDirty() || hadBeenSaved;
|
return dirty.isDirty() || hadBeenSaved;
|
||||||
}
|
}
|
||||||
|
|
||||||
function replaceMetas(newStyle) {
|
function replaceMeta(newStyle) {
|
||||||
style.enabled = newStyle.enabled;
|
style.enabled = newStyle.enabled;
|
||||||
dirty.clear('enabled');
|
dirty.clear('enabled');
|
||||||
updateMetas();
|
updateMetas();
|
||||||
|
@ -255,7 +255,7 @@ ${section}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
replaceStyle,
|
replaceStyle,
|
||||||
replaceMetas,
|
replaceMeta,
|
||||||
save,
|
save,
|
||||||
toggleStyle,
|
toggleStyle,
|
||||||
isDirty: dirty.isDirty,
|
isDirty: dirty.isDirty,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user