Fixed plugin change observer silent error.

I'd have thought the error would make some noise, but no.
This commit is contained in:
Oliver Hamlet
2015-01-20 16:17:15 +00:00
parent 1a9b4bda0f
commit adc03800fb
+2 -2
View File
@@ -187,9 +187,9 @@ function Plugin(obj) {
} else if (change.name == 'isDirty') {
/* Update dirty counts. */
if (change.object[change.name]) {
document.getElementById('dirtyPluginNo').textContent = ++parseInt(document.getElementById('dirtyPluginNo').textContent, 10);
document.getElementById('dirtyPluginNo').textContent = parseInt(document.getElementById('dirtyPluginNo').textContent, 10) + 1;
} else {
document.getElementById('dirtyPluginNo').textContent = --parseInt(document.getElementById('dirtyPluginNo').textContent, 10);
document.getElementById('dirtyPluginNo').textContent = parseInt(document.getElementById('dirtyPluginNo').textContent, 10) - 1;
}
}
});