Skip to content
This repository has been archived by the owner on May 29, 2019. It is now read-only.

Commit

Permalink
Redraw tooltip after its text content change
Browse files Browse the repository at this point in the history
  • Loading branch information
hadrienl committed Oct 10, 2014
1 parent 03b7c69 commit cac2944
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/tooltip/tooltip.js
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,16 @@ angular.module( 'ui.bootstrap.tooltip', [ 'ui.bootstrap.position', 'ui.bootstrap
}
});

/**
* Redraw tooltip after its text content change.
*/
attrs.$observe('tooltip', function (val) {
if (tooltip) {
removeTooltip();
$timeout(show);
}
});

attrs.$observe( prefix+'Title', function ( val ) {
scope.tt_title = val;
});
Expand Down

0 comments on commit cac2944

Please sign in to comment.