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) { if (codeIsUpdated) {
editor.replaceStyle(request.style); editor.replaceStyle(request.style);
} else { } else {
editor.replaceMetas(request.style); editor.replaceMeta(request.style);
} }
} }
} }

View File

@ -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,