From 67a2da9e30f8e9d168d62323332a6849bced9f35 Mon Sep 17 00:00:00 2001 From: Paul Gschwendtner Date: Thu, 7 Jul 2016 19:47:09 +0200 Subject: [PATCH] fix(slide-toggle): fix runtime exception for incorrect mousedown binding. * Commit fad4ef5 made all internal functions prefixed with an underscore. The commit did accidentally miss to add the underscore the `(mousedown)` host binding function, which causes a Runtime Exception now. --- src/components/slide-toggle/slide-toggle.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/slide-toggle/slide-toggle.ts b/src/components/slide-toggle/slide-toggle.ts index 16d809e9e9aa..ea66875bdfe1 100644 --- a/src/components/slide-toggle/slide-toggle.ts +++ b/src/components/slide-toggle/slide-toggle.ts @@ -39,7 +39,7 @@ let nextId = 0; '[class.md-disabled]': 'disabled', // This md-slide-toggle prefix will change, once the temporary ripple is removed. '[class.md-slide-toggle-focused]': '_hasFocus', - '(mousedown)': 'setMousedown()' + '(mousedown)': '_setMousedown()' }, templateUrl: 'slide-toggle.html', styleUrls: ['slide-toggle.css'],