Add: make dirtyReporter.clear accept a key
This commit is contained in:
parent
831a4ef939
commit
0a6de8edb8
|
@ -46,8 +46,12 @@ function dirtyReporter() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function clear() {
|
function clear(obj) {
|
||||||
|
if (obj === undefined) {
|
||||||
dirty.clear();
|
dirty.clear();
|
||||||
|
} else {
|
||||||
|
dirty.delete(obj);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function isDirty() {
|
function isDirty() {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user