Skip to content

Commit d6a4030

Browse files
committed
Merge pull request #5046 from lpand/master
chore(docs): fix #4984 make explicit in the documents that sortChanged event ho…
2 parents 29eb6e1 + 6e0325d commit d6a4030

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/js/core/factories/Grid.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -379,12 +379,12 @@ angular.module('ui.grid')
379379
* that have sorting on them, sorted in priority order.
380380
*
381381
* @param {$scope} scope The scope of the controller. This is used to deregister this event when the scope is destroyed.
382-
* @param {Function} callBack Will be called when the event is emited. The function passes back an array of columns with
383-
* sorts on them, in priority order.
382+
* @param {Function} callBack Will be called when the event is emited. The function passes back the grid and an array of
383+
* columns with sorts on them, in priority order.
384384
*
385385
* @example
386386
* <pre>
387-
* gridApi.core.on.sortChanged( $scope, function(sortColumns){
387+
* gridApi.core.on.sortChanged( $scope, function(grid, sortColumns){
388388
* // do something
389389
* });
390390
* </pre>

0 commit comments

Comments
 (0)