From 0d06f327352b22e53576462367c798a86a79c78b Mon Sep 17 00:00:00 2001 From: eight Date: Thu, 9 Nov 2017 07:26:51 +0800 Subject: [PATCH] Fix: updateMetas -> updateMeta --- edit/source-editor.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/edit/source-editor.js b/edit/source-editor.js index adfe6d14..ddd16dea 100644 --- a/edit/source-editor.js +++ b/edit/source-editor.js @@ -51,7 +51,7 @@ function createSourceEditor(style) { editors.push(cm); // draw metas info - updateMetas(); + updateMeta(); initHooks(); initAppliesToLineWidget(); @@ -177,7 +177,7 @@ ${section} } } - function updateMetas() { + function updateMeta() { $('#name').value = style.name; $('#enabled').checked = style.enabled; $('#url').href = style.url; @@ -202,7 +202,7 @@ ${section} history.replaceState({}, '', `?id=${newStyle.id}`); } style = deepCopy(newStyle); - updateMetas(); + updateMeta(); if (style.sourceCode !== cm.getValue()) { const cursor = cm.getCursor(); cm.setValue(style.sourceCode); @@ -216,7 +216,7 @@ ${section} const value = !style.enabled; dirty.modify('enabled', style.enabled, value); style.enabled = value; - updateMetas(); + updateMeta(); // save when toggle enable state? save(); } @@ -250,7 +250,7 @@ ${section} function replaceMeta(newStyle) { style.enabled = newStyle.enabled; dirty.clear('enabled'); - updateMetas(); + updateMeta(); } return {