website refactor
This commit is contained in:
@@ -87,10 +87,11 @@ module.exports = {
|
||||
|
||||
// Check for present method in classes
|
||||
MethodDefinition(node) {
|
||||
if (presenterClassNode &&
|
||||
node.key.type === 'Identifier' &&
|
||||
if (presenterClassNode &&
|
||||
node.key.type === 'Identifier' &&
|
||||
node.key.name === 'present' &&
|
||||
node.parent === presenterClassNode) {
|
||||
node.parent.type === 'ClassBody' &&
|
||||
node.parent.parent === presenterClassNode) {
|
||||
hasPresentMethod = true;
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user