Skip to content

Commit 448168b

Browse files
committed
Merge pull request #3922 from angular-ui/JLLeitschuh-patch-1
Fixes documentation in ui-grid-util.js
2 parents f2368cc + 2af2f98 commit 448168b

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/js/core/services/ui-grid-util.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -915,9 +915,9 @@ module.service('gridUtil', ['$log', '$window', '$document', '$http', '$templateC
915915
* @methodOf ui.grid.service:GridUtil
916916
*
917917
* @param {element} element The element to get the `scrollLeft` from.
918-
* @param {boolean} grid - grid used to normalize (uses the rtl property)
918+
* @param {grid} grid - grid used to normalize (uses the rtl property)
919919
*
920-
* @returns {int} A normalized scrollLeft value for the current browser.
920+
* @returns {number} A normalized scrollLeft value for the current browser.
921921
*
922922
* @description
923923
* Browsers currently handle RTL in different ways, resulting in inconsistent scrollLeft values. This method normalizes them
@@ -945,14 +945,14 @@ module.service('gridUtil', ['$log', '$window', '$document', '$http', '$templateC
945945

946946
/**
947947
* @ngdoc method
948-
* @name normalizeScrollLeft
948+
* @name denormalizeScrollLeft
949949
* @methodOf ui.grid.service:GridUtil
950950
*
951951
* @param {element} element The element to normalize the `scrollLeft` value for
952-
* @param {int} scrollLeft The `scrollLeft` value to denormalize.
953-
* @param {boolean} grid The grid that owns the scroll event.
952+
* @param {number} scrollLeft The `scrollLeft` value to denormalize.
953+
* @param {grid} grid The grid that owns the scroll event.
954954
*
955-
* @returns {int} A normalized scrollLeft value for the current browser.
955+
* @returns {number} A normalized scrollLeft value for the current browser.
956956
*
957957
* @description
958958
* Browsers currently handle RTL in different ways, resulting in inconsistent scrollLeft values. This method denormalizes a value for the current browser.
@@ -1019,7 +1019,7 @@ module.service('gridUtil', ['$log', '$window', '$document', '$http', '$templateC
10191019
*
10201020
* @param {function} func function to debounce
10211021
* @param {number} wait milliseconds to delay
1022-
* @param {bool} immediate execute before delay
1022+
* @param {boolean} immediate execute before delay
10231023
*
10241024
* @returns {function} A function that can be executed as debounced function
10251025
*

0 commit comments

Comments
 (0)