33
2
mirror of https://github.com/joomla-extensions/jedchecker.git synced 2024-11-24 05:37:38 +00:00

Results from previous check are now cleared when checking again

This commit is contained in:
eaxs 2012-06-25 21:16:11 +02:00
parent 02fdc3ed4c
commit c43c77b9f4

View File

@ -13,6 +13,12 @@ var police = new Class({
var self = this;
this.setOptions(options);
// Clear result from any previous check
if(document.id('police-check-result').getChildren('div').length > 0) {
document.id('police-check-result').empty();
}
this.options.rules.each(function(rule){
self.check(rule);
});