Commit e61608a1 authored by Rafal Zajac's avatar Rafal Zajac

IDE assist, documentation

parent 8137d1a4
...@@ -14,7 +14,16 @@ ...@@ -14,7 +14,16 @@
angular.module('rzModule', []) angular.module('rzModule', [])
.value('throttle', .value('throttle',
// Taken from underscore project /**
* throttle
*
* Taken from underscore project
*
* @param {Function} func
* @param {number} wait
* @param {ThrottleOptions} options
* @returns {Function}
*/
function throttle(func, wait, options) { function throttle(func, wait, options) {
var getTime = (Date.now || function() { var getTime = (Date.now || function() {
return new Date().getTime(); return new Date().getTime();
...@@ -855,12 +864,21 @@ function throttle(func, wait, options) { ...@@ -855,12 +864,21 @@ function throttle(func, wait, options) {
/** /**
* @name jqLite * @name jqLite
* *
* @property {number} rzsl * @property {number|undefined} rzsl
* @property {number} rzsw * @property {number|undefined} rzsw
* @property {string} rzsv * @property {string|undefined} rzsv
* @property {Function} css
* @property {Function} text
*/ */
/** /**
* @name Event * @name Event
* @property {Array} touches * @property {Array} touches
*/ */
/**
* @name ThrottleOptions
*
* @property {bool} leading
* @property {bool} trailing
*/
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment