Skip to content

Commit

Permalink
fix(button): remove ref to Event global (for node)
Browse files Browse the repository at this point in the history
  • Loading branch information
jelbourn committed Apr 14, 2016
1 parent d4a3cde commit 76e4f56
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/components/button/button.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import {
ViewEncapsulation,
Input,
HostBinding,
HostListener,
ChangeDetectionStrategy,
ElementRef,
Renderer,
Expand All @@ -22,7 +21,7 @@ import {
'[class.md-button-focus]': 'isKeyboardFocused',
'(mousedown)': 'setMousedown()',
'(focus)': 'setKeyboardFocus()',
'(blur)': 'removeKeyboardFocus()'
'(blur)': 'removeKeyboardFocus()',
},
templateUrl: './components/button/button.html',
styleUrls: ['./components/button/button.css'],
Expand Down Expand Up @@ -85,7 +84,8 @@ export class MdButton {
'[class.md-button-focus]': 'isKeyboardFocused',
'(mousedown)': 'setMousedown()',
'(focus)': 'setKeyboardFocus()',
'(blur)': 'removeKeyboardFocus()'
'(blur)': 'removeKeyboardFocus()',
'(click)': 'haltDisabledEvents($event)',
},
templateUrl: './components/button/button.html',
styleUrls: ['./components/button/button.css'],
Expand Down Expand Up @@ -118,7 +118,6 @@ export class MdAnchor extends MdButton {
this._disabled = (value != null && value != false) ? true : null;
}

@HostListener('click', ['$event'])
haltDisabledEvents(event: Event) {
// A disabled button shouldn't apply any actions
if (this.disabled) {
Expand Down

0 comments on commit 76e4f56

Please sign in to comment.