From 279c7d05a799e2bf08cc9f7f0ae06576ec44ed23 Mon Sep 17 00:00:00 2001 From: eight Date: Wed, 13 Sep 2017 01:39:45 +0800 Subject: [PATCH] Fix: _style -> newStyle --- 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 b53cf0ab..a8f5b92e 100644 --- a/edit/source-editor.js +++ b/edit/source-editor.js @@ -85,8 +85,8 @@ function createSourceEditor(style) { $('#beautify').disabled = Boolean(style.preprocessor); } - function replaceStyle(_style) { - style = _style; + function replaceStyle(newStyle) { + style = newStyle; updateMetas(); if (style.source !== cm.getValue()) { const cursor = cm.getCursor(); @@ -96,9 +96,9 @@ function createSourceEditor(style) { dirty.clear(); } - function updateStyleMeta(_style) { - dirty.modify('enabled', style.enabled, _style.enabled); - style.enabled = _style.enabled; + function updateStyleMeta(newStyle) { + dirty.modify('enabled', style.enabled, newStyle.enabled); + style.enabled = newStyle.enabled; } function toggleStyle() {