ionic-long-press
ionic-long-press copied to clipboard
[ERROR] Syntax
` import { Injectable } from '@angular/core' import { HammerGestureConfig } from '@angular/platform-browser'
@Injectable()
export class IonicGestureConfig extends HammerGestureConfig {
buildHammer(element: HTMLElement) {
if (window) {
const mc = new (
for (const eventName in this.overrides) {
if (eventName) {
mc.get(eventName).set(this.overrides[eventName])
}
}
}
return mc
} }`
here your "return mc" is outside of the scope of the if statement, shouldn't it be inside?