Skip to content

Commit f358d40

Browse files
committed
fix for template url cache by @kmoroder
1 parent 6dda279 commit f358d40

8 files changed

+16
-24
lines changed

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "angular-tooltips",
3-
"version": "1.1.5",
3+
"version": "1.1.6",
44
"description": "Angular.js tooltips module.",
55
"authors": [
66
"Filippo Oretti <[email protected]",

dist/angular-tooltips.css

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/angular-tooltips.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
/*
22
* angular-tooltips
3-
* 1.1.5
3+
* 1.1.6
44
*
55
* Angular.js tooltips module.
66
* http://720kb.github.io/angular-tooltips
77
*
88
* MIT license
9-
* Thu Aug 04 2016
9+
* Fri Aug 05 2016
1010
*/
1111
/*global angular,window*/
1212
(function withAngular(angular, window) {

dist/angular-tooltips.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/angular-tooltips.min.css

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/angular-tooltips.min.js

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/angular-tooltips.js

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -570,7 +570,7 @@
570570
}
571571
}
572572
, onTooltipTemplateUrlChange = function onTooltipTemplateUrlChange(newValue) {
573-
if (newValue) {
573+
if (newValue && !$attrs.tooltipTemplateUrlCache) {
574574

575575
$http.get(newValue).then(function onResponse(response) {
576576

@@ -603,17 +603,9 @@
603603
tooltipElement.removeClass('_force-hidden'); //see lines below, this forces to hide tooltip when is empty
604604
tipTipElement.empty();
605605
tipTipElement.append(closeButtonElement);
606-
$http.get(newValue).then(function onResponse(response) {
607-
608-
if (response &&
609-
response.data) {
610-
611-
tipTipElement.append($compile(response.data)(scope));
612-
$timeout(function doLater() {
613-
614-
onTooltipShow();
615-
});
616-
}
606+
tipTipElement.append($compile(template)(scope));
607+
$timeout(function doLater() {
608+
onTooltipShow();
617609
});
618610
}
619611
} else {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "angular-tooltips",
3-
"version": "1.1.5",
3+
"version": "1.1.6",
44
"description": "Angular.js tooltips module.",
55
"homepage": "http://720kb.github.io/angular-tooltips",
66
"main": "index.js",

0 commit comments

Comments
 (0)