Skip to content

Commit

Permalink
fix(gridUtil): Allow multiple logDebug params
Browse files Browse the repository at this point in the history
The function was previously only allowing one parameter. Now the args just
get passed straight on to $log.debug
  • Loading branch information
c0bra committed Nov 13, 2014
1 parent 94a3114 commit c903ecc
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/js/core/services/ui-grid-util.js
Expand Up @@ -735,12 +735,11 @@ module.service('gridUtil', ['$log', '$window', '$document', '$http', '$templateC
* @description wraps the $log method, allowing us to choose different
* treatment within ui-grid if we so desired. At present we only log
* debug messages if uiGridConstants.LOG_DEBUG_MESSAGES is set to true
* @param {string} logMessage message to be logged to the console
*
*/
logDebug: function( logMessage ){
logDebug: function() {
if ( uiGridConstants.LOG_DEBUG_MESSAGES ){
$log.debug( logMessage );
$log.debug.apply($log, arguments);
}
}

Expand Down

0 comments on commit c903ecc

Please sign in to comment.