diff --git a/edit/edit.js b/edit/edit.js index 763b0b1a..941e8cd6 100644 --- a/edit/edit.js +++ b/edit/edit.js @@ -1907,7 +1907,7 @@ function replaceStyle(request) { if (codeIsUpdated) { editor.replaceStyle(request.style); } else { - editor.replaceMetas(request.style); + editor.replaceMeta(request.style); } } } diff --git a/edit/source-editor.js b/edit/source-editor.js index 490440ce..adfe6d14 100644 --- a/edit/source-editor.js +++ b/edit/source-editor.js @@ -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,