Skip to content

Commit

Permalink
Merge pull request #3 from hctpbl/refactor/rename-tooltip-template-at…
Browse files Browse the repository at this point in the history
…tribute-name

Yet some other missing tooltipTemplate appearances to rename
  • Loading branch information
hctpbl authored Feb 23, 2017
2 parents 56785e3 + 174486e commit fc50c4a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/angular-tooltips.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,10 @@
var attributesToAdd = {};

element.removeAttr(directiveName);
if (element.attr('tooltip-template') !== undefined) {
if (element.attr('tooltip-template-text') !== undefined) {

attributesToAdd['tooltip-template'] = element.attr('tooltip-template');
element.removeAttr('tooltip-template');
attributesToAdd['tooltip-template-text'] = element.attr('tooltip-template-text');
element.removeAttr('tooltip-template-text');
}

if (element.attr('tooltip-template-url') !== undefined) {
Expand Down Expand Up @@ -244,7 +244,7 @@
if ($attrs.tooltipTemplateText &&
$attrs.tooltipTemplateUrl) {

throw new Error('You can not define tooltip-template and tooltip-template-url together');
throw new Error('You can not define tooltip-template-text and tooltip-template-url together');
}

if (!($attrs.tooltipTemplateUrl || $attrs.tooltipTemplateText) &&
Expand Down

0 comments on commit fc50c4a

Please sign in to comment.