fix #1888 csslint worker gives error for empty file
This commit is contained in:
parent
dcd96294f7
commit
5ef28b7e11
1 changed files with 2 additions and 0 deletions
|
|
@ -76,6 +76,8 @@ oop.inherits(Worker, Mirror);
|
|||
|
||||
this.onUpdate = function() {
|
||||
var value = this.doc.getValue();
|
||||
if (!value)
|
||||
return this.sender.emit("csslint", []);
|
||||
var infoRules = this.infoRules;
|
||||
|
||||
var result = CSSLint.verify(value, this.ruleset);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue