From e0650fde711166c88dc85c9737a4c4bd27f839c2 Mon Sep 17 00:00:00 2001 From: tophf Date: Sat, 21 Mar 2015 16:24:45 +0300 Subject: [PATCH] Editor: fixes for 0e391f9, refactor, more fixes * recognize changes in applies-to inputs * recognize changes only in specified controls * forget the dirty applies-to ids from a deleted section after the style was saved * toMozillaFormat: use the actual contents of CodeMirror instances * toMozillaFormat: allow empty code section with non-empty applies-to * refactor: simplify, de-kludge, de-duplicate, de-obfuscate, use more descriptive names instead of "items", "a", "b" where appropriate --- edit.html | 4 +- edit.js | 352 +++++++++++++++++++++++++----------------------------- 2 files changed, 168 insertions(+), 188 deletions(-) diff --git a/edit.html b/edit.html index 2a451d58..255c47f0 100644 --- a/edit.html +++ b/edit.html @@ -193,8 +193,8 @@