added check for this.$ in Event