diff --git a/edit/util.js b/edit/util.js index 43325c27..84b2e7d2 100644 --- a/edit/util.js +++ b/edit/util.js @@ -46,8 +46,12 @@ function dirtyReporter() { } } - function clear() { - dirty.clear(); + function clear(obj) { + if (obj === undefined) { + dirty.clear(); + } else { + dirty.delete(obj); + } } function isDirty() {