From 01cdfe413389aa4e7dbb2874d46035f217b60b57 Mon Sep 17 00:00:00 2001 From: Sergii Iushchuk Date: Fri, 27 May 2016 18:28:03 +0300 Subject: [PATCH] fix(getTemplate): Updated custom templates as promises condition (#5311) --- src/js/core/services/ui-grid-util.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js/core/services/ui-grid-util.js b/src/js/core/services/ui-grid-util.js index e9e4c65f74..30bc0cbff2 100644 --- a/src/js/core/services/ui-grid-util.js +++ b/src/js/core/services/ui-grid-util.js @@ -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); }