Skip to content
Browse files

fix(tooltip): remove the wrong cache use for $http

  • Loading branch information...
1 parent 4a93ec9 commit 612148e0bf19f287676fa7063e146d66f6ea5d78 @mgcrea committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/tooltip/tooltip.js
View
2 src/tooltip/tooltip.js
@@ -77,7 +77,7 @@ angular.module('mgcrea.ngStrap.tooltip', ['mgcrea.ngStrap.helpers.dimensions'])
$tooltip.$promise = $tooltip.$promise.then(function(template) {
if(angular.isObject(template)) template = template.data;
var templateEl = angular.element(template);
- return $q.when($templateCache.get(options.contentTemplate) || $http.get(options.contentTemplate, {cache: $templateCache}))
+ return $q.when($templateCache.get(options.contentTemplate) || $http.get(options.contentTemplate))
.then(function(contentTemplate) {
if(angular.isObject(contentTemplate)) contentTemplate = contentTemplate.data;
findElement('[ng-bind="content"]', templateEl[0]).removeAttr('ng-bind').html(contentTemplate);

0 comments on commit 612148e

Please sign in to comment.
Something went wrong with that request. Please try again.