Skip to content
This repository has been archived by the owner on Feb 28, 2023. It is now read-only.

Commit

Permalink
code review
Browse files Browse the repository at this point in the history
  • Loading branch information
Mboulianne committed Jul 5, 2019
1 parent 1f2e13c commit 849e96f
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 8 deletions.
3 changes: 0 additions & 3 deletions src/components/button/button.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,6 @@ export class MButton extends Vue {
(this.$el as HTMLElement).blur();
}

@Emit('mousedown')
onMousedown(event: Event): void { }

@Emit('touchstart')
onTouchstart(event: Event): void { }

Expand Down
1 change: 0 additions & 1 deletion src/components/link/link.html
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@
:href="propUrl"
:target="target"
@click="onClick"
@mousedown="onMousedown"
v-if="!isRouterLink"
@keyup="onKeyup"
:tabindex="disabled ? '-1' : tabindex"
Expand Down
5 changes: 1 addition & 4 deletions src/components/link/link.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { PluginObject } from 'vue';
import Component from 'vue-class-component';
import { Emit, Prop, Watch } from 'vue-property-decorator';
import { Prop, Watch } from 'vue-property-decorator';
import { Location } from 'vue-router';
import { KeyCode } from '../../utils/keycode/keycode';
import { ModulVue } from '../../utils/vue/vue';
Expand Down Expand Up @@ -112,9 +112,6 @@ export class MLink extends ModulVue {
}
}

@Emit('mousedown')
private onMousedown(): void { }

private get isRouterLink(): boolean {
return this.mode === MLinkMode.RouterLink;
}
Expand Down

0 comments on commit 849e96f

Please sign in to comment.