refactor: format & lint

This commit is contained in:
Victor Berchet 2016-12-14 15:10:43 -08:00
parent 169ed82900
commit c65b4fa9dc
2 changed files with 2 additions and 2 deletions

View File

@ -90,7 +90,7 @@ export class DirectiveResolver {
host[`[${propName}]`] = propName; host[`[${propName}]`] = propName;
} }
}); });
const hostListeners = propertyMetadata[propName].filter(a => a && a instanceof HostListener) const hostListeners = propertyMetadata[propName].filter(a => a && a instanceof HostListener);
hostListeners.forEach(hostListener => { hostListeners.forEach(hostListener => {
const args = hostListener.args || []; const args = hostListener.args || [];
host[`(${hostListener.eventName})`] = `${propName}(${args.join(',')})`; host[`(${hostListener.eventName})`] = `${propName}(${args.join(',')})`;

View File

@ -361,7 +361,7 @@ export function main() {
'[p22]': 'p2', '[p22]': 'p2',
'[c2]': 'p2' '[c2]': 'p2'
}); });
}) });
}); });
describe('queries', () => { describe('queries', () => {