Bug 1298879 - Upgrade to ESLint 3.5.0 for faster linting. r=miker

This commit is contained in:
Philipp Kewisch
2016-09-20 10:27:03 +01:00
parent fb875a93d3
commit dc8e3f9b36
9 changed files with 94 additions and 108 deletions

View File

@@ -1328,14 +1328,10 @@ CssPropertyInfo.prototype = {
*/
_refilterSelectors: function () {
let passId = ++this._cssLogic._passId;
let ruleCount = 0;
let iterator = function (selectorInfo) {
let cssRule = selectorInfo.selector.cssRule;
if (cssRule._passId != passId) {
if (cssRule.sheetAllowed) {
ruleCount++;
}
cssRule._passId = passId;
}
};