File tree Expand file tree Collapse file tree 1 file changed +10
-8
lines changed Expand file tree Collapse file tree 1 file changed +10
-8
lines changed Original file line number Diff line number Diff line change @@ -806,15 +806,17 @@ angular.module('ui.grid')
806
806
}
807
807
} ) ;
808
808
}
809
+ } ;
809
810
810
- // Remove this column from the grid sorting, include inside build columns so has
811
- // access to self - all seems a bit dodgy but doesn't work otherwise so have left
812
- // as is
813
- GridColumn . prototype . unsort = function ( ) {
814
- this . sort = { } ;
815
- self . grid . api . core . raise . sortChanged ( self . grid , self . grid . getColumnSorting ( ) ) ;
816
- } ;
817
-
811
+ /**
812
+ * @ngdoc function
813
+ * @name unsort
814
+ * @methodOf ui.grid.class:GridColumn
815
+ * @description Removes column from the grid sorting
816
+ */
817
+ GridColumn . prototype . unsort = function ( ) {
818
+ this . sort = { } ;
819
+ this . grid . api . core . raise . sortChanged ( this . grid , this . grid . getColumnSorting ( ) ) ;
818
820
} ;
819
821
820
822
You can’t perform that action at this time.
0 commit comments