Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix(getTemplate): Updated custom templates as promises condition (#5311)
  • Loading branch information
Edifear authored and JLLeitschuh committed May 27, 2016
1 parent 8e5d4c4 commit 01cdfe4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/core/services/ui-grid-util.js
Expand Up @@ -351,7 +351,7 @@ module.service('gridUtil', ['$log', '$window', '$document', '$http', '$templateC
}

// See if the template is itself a promise
if (template.hasOwnProperty('then')) {
if (angular.isFunction(template.then)) {
return template.then(s.postProcessTemplate);
}

Expand Down

0 comments on commit 01cdfe4

Please sign in to comment.