Fix: replaceMetas -> replaceMeta

This commit is contained in:
eight 2017-11-09 07:23:54 +08:00
parent b4dfe5c836
commit eef17cc4f8
2 changed files with 3 additions and 3 deletions

View File

@ -1907,7 +1907,7 @@ function replaceStyle(request) {
if (codeIsUpdated) {
editor.replaceStyle(request.style);
} else {
editor.replaceMetas(request.style);
editor.replaceMeta(request.style);
}
}
}

View File

@ -247,7 +247,7 @@ ${section}
return dirty.isDirty() || hadBeenSaved;
}
function replaceMetas(newStyle) {
function replaceMeta(newStyle) {
style.enabled = newStyle.enabled;
dirty.clear('enabled');
updateMetas();
@ -255,7 +255,7 @@ ${section}
return {
replaceStyle,
replaceMetas,
replaceMeta,
save,
toggleStyle,
isDirty: dirty.isDirty,