Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e61608a

Browse files
committed
IDE assist, documentation
1 parent 8137d1a commit e61608a

File tree

1 file changed

+22
-4
lines changed

1 file changed

+22
-4
lines changed

rzslider.js

Lines changed: 22 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,16 @@
1414
angular.module('rzModule', [])
1515

1616
.value('throttle',
17-
// Taken from underscore project
17+
/**
18+
* throttle
19+
*
20+
* Taken from underscore project
21+
*
22+
* @param {Function} func
23+
* @param {number} wait
24+
* @param {ThrottleOptions} options
25+
* @returns {Function}
26+
*/
1827
function throttle(func, wait, options) {
1928
var getTime = (Date.now || function() {
2029
return new Date().getTime();
@@ -855,12 +864,21 @@ function throttle(func, wait, options) {
855864
/**
856865
* @name jqLite
857866
*
858-
* @property {number} rzsl
859-
* @property {number} rzsw
860-
* @property {string} rzsv
867+
* @property {number|undefined} rzsl
868+
* @property {number|undefined} rzsw
869+
* @property {string|undefined} rzsv
870+
* @property {Function} css
871+
* @property {Function} text
861872
*/
862873

863874
/**
864875
* @name Event
865876
* @property {Array} touches
866877
*/
878+
879+
/**
880+
* @name ThrottleOptions
881+
*
882+
* @property {bool} leading
883+
* @property {bool} trailing
884+
*/

0 commit comments

Comments
 (0)