Skip to content

Commit

Permalink
fix(ngc): _onDragStart/End are called with one param
Browse files Browse the repository at this point in the history
Fixes #1112
  • Loading branch information
alexeagle committed Aug 24, 2016
1 parent 02c7593 commit 1b31715
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/slide-toggle/slide-toggle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ export class MdSlideToggle implements AfterContentInit, ControlValueAccessor {


/** TODO: internal */
_onDragStart() {
_onDragStart(event: Event) {
this._slideRenderer.startThumbDrag(this.checked);
}

Expand All @@ -223,7 +223,7 @@ export class MdSlideToggle implements AfterContentInit, ControlValueAccessor {
}

/** TODO: internal */
_onDragEnd() {
_onDragEnd(event: Event) {
// Notice that we have to stop outside of the current event handler,
// because otherwise the click event will be fired and will reset the new checked variable.
setTimeout(() => {
Expand Down

0 comments on commit 1b31715

Please sign in to comment.