From eef17cc4f8e0b14c90e8875d3d1b6a77255fc5eb Mon Sep 17 00:00:00 2001 From: eight Date: Thu, 9 Nov 2017 07:23:54 +0800 Subject: [PATCH] Fix: replaceMetas -> replaceMeta --- edit/edit.js | 2 +- edit/source-editor.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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,