Skip to content

Commit

Permalink
revert includes() change because closure
Browse files Browse the repository at this point in the history
  • Loading branch information
paulirish committed May 28, 2016
1 parent ba8e9a4 commit 9c6a0d1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/aggregators/aggregate.js
Expand Up @@ -82,7 +82,7 @@ class Aggregate {
*/
static _filterResultsByAuditNames(results, expected) {
const expectedNames = Object.keys(expected);
return results.filter(r => expectedNames.includes(/** @type {string} */ (r.name)));
return results.filter(r => expectedNames.indexOf(/** @type {string} */ (r.name)) !== -1);
}

/**
Expand Down
2 changes: 1 addition & 1 deletion src/aggregators/is-sized-for-mobile-screen/index.js
Expand Up @@ -18,7 +18,7 @@
'use strict';

const Aggregate = require('../aggregate');
const viewport = require('../../audits/mobile-friendly/viewport')
const viewport = require('../../audits/mobile-friendly/viewport');

class MobileFriendly extends Aggregate {

Expand Down

0 comments on commit 9c6a0d1

Please sign in to comment.