Skip to content

Commit c903ecc

Browse files
committed
fix(gridUtil): Allow multiple logDebug params
The function was previously only allowing one parameter. Now the args just get passed straight on to $log.debug
1 parent 94a3114 commit c903ecc

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

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

+2-3
Original file line numberDiff line numberDiff line change
@@ -735,12 +735,11 @@ module.service('gridUtil', ['$log', '$window', '$document', '$http', '$templateC
735735
* @description wraps the $log method, allowing us to choose different
736736
* treatment within ui-grid if we so desired. At present we only log
737737
* debug messages if uiGridConstants.LOG_DEBUG_MESSAGES is set to true
738-
* @param {string} logMessage message to be logged to the console
739738
*
740739
*/
741-
logDebug: function( logMessage ){
740+
logDebug: function() {
742741
if ( uiGridConstants.LOG_DEBUG_MESSAGES ){
743-
$log.debug( logMessage );
742+
$log.debug.apply($log, arguments);
744743
}
745744
}
746745

0 commit comments

Comments
 (0)