Skip to content

Commit

Permalink
fix(getTemplate): Updated custom templates as promises condition (ang…
Browse files Browse the repository at this point in the history
  • Loading branch information
Edifear authored and lootek committed Jul 4, 2016
1 parent f6d63c9 commit 8014a99
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/core/services/ui-grid-util.js
Original file line number Diff line number Diff line change
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 8014a99

Please sign in to comment.