@@ -21,7 +21,8 @@ var DURATION = 450;
21
21
* @description
22
22
* The `md-ink-ripple` directive allows you to specify the ripple color or if a ripple is allowed.
23
23
*
24
- * @param {string|boolean } md-ink-ripple A color string `#FF0000` or boolean (`false` or `0`) for preventing ripple
24
+ * @param {string|boolean } md-ink-ripple A color string `#FF0000` or boolean (`false` or `0`) for
25
+ * preventing ripple
25
26
*
26
27
* @usage
27
28
* ### String values
@@ -84,15 +85,24 @@ function InkRippleDirective ($mdButtonInkRipple, $mdCheckboxInkRipple) {
84
85
* }
85
86
* });
86
87
* </hljs>
88
+ */
89
+
90
+ /**
91
+ * @ngdoc service
92
+ * @name $mdInkRippleProvider
93
+ * @module material.core.ripple
87
94
*
88
- * ### Disabling ripples globally
89
- * If you want to disable ink ripples globally, for all components, you can call the
95
+ * @description
96
+ * If you want to disable ink ripples globally, for all components, you can call the
90
97
* `disableInkRipple` method in your app's config.
91
98
*
99
+ *
100
+ * @usage
92
101
* <hljs lang="js">
93
102
* app.config(function ($mdInkRippleProvider) {
94
103
* $mdInkRippleProvider.disableInkRipple();
95
104
* });
105
+ * </hljs>
96
106
*/
97
107
98
108
function InkRippleProvider ( ) {
@@ -131,7 +141,7 @@ function InkRippleProvider () {
131
141
132
142
/**
133
143
* @ngdoc method
134
- * @name $mdInkRipple #disableInkRipple
144
+ * @name $mdInkRippleProvider #disableInkRipple
135
145
*
136
146
* @description
137
147
* A config-time method that, when called, disables ripples globally.
@@ -175,12 +185,10 @@ function InkRippleCtrl ($scope, $element, rippleOptions, $window, $timeout, $mdU
175
185
* mouseup or mouseleave event)
176
186
*/
177
187
function autoCleanup ( self , cleanupFn ) {
178
-
179
188
if ( self . mousedown || self . lastRipple ) {
180
189
self . mousedown = false ;
181
190
self . $mdUtil . nextTick ( angular . bind ( self , cleanupFn ) , false ) ;
182
191
}
183
-
184
192
}
185
193
186
194
@@ -222,11 +230,10 @@ InkRippleCtrl.prototype.calculateColor = function () {
222
230
223
231
/**
224
232
* Takes a string color and converts it to RGBA format
225
- * @param color {string}
226
- * @param [multiplier] {int}
233
+ * @param {string } color
234
+ * @param { number } multiplier
227
235
* @returns {string }
228
236
*/
229
-
230
237
InkRippleCtrl . prototype . _parseColor = function parseColor ( color , multiplier ) {
231
238
multiplier = multiplier || 1 ;
232
239
var colorUtil = this . $mdColorUtil ;
0 commit comments