Browse Source

linting, consistency

gh-669
Rich-Harris 9 years ago
parent
commit
fe21dc85c8
  1. 3
      src/ast/isReference.js

3
src/ast/isReference.js

@ -10,8 +10,7 @@ export default function isReference ( node, parent ) {
if ( !parent ) return true; if ( !parent ) return true;
// TODO is this right? // TODO is this right?
if ( parent.type === 'MemberExpression' || if ( parent.type === 'MemberExpression' || parent.type === 'MethodDefinition' ) {
parent.type === 'MethodDefinition' ) {
return parent.computed || node === parent.object; return parent.computed || node === parent.object;
} }

Loading…
Cancel
Save