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

Commit

Permalink
Browse files Browse the repository at this point in the history
fix(tooltip): restore html-unsafe compatibility with AngularJS 1.2
  • Loading branch information
jimrollenhagen authored and pkozlowski-opensource committed Sep 10, 2013
1 parent 7c5cb18 commit 08d8b21
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions src/tooltip/test/tooltip.spec.js
Expand Up @@ -363,6 +363,11 @@ describe( 'tooltipHtmlUnsafe', function() {
elmScope = elm.scope();
}));

it( 'should render html properly', inject( function () {
elm.trigger( 'mouseenter' );
expect( elmBody.find('.tooltip-inner').html() ).toBe( scope.html );
}));

it( 'should show on mouseenter and hide on mouseleave', inject( function () {
expect( elmScope.tt_isOpen ).toBe( false );

Expand Down
2 changes: 1 addition & 1 deletion template/tooltip/tooltip-html-unsafe-popup.html
@@ -1,4 +1,4 @@
<div class="tooltip {{placement}}" ng-class="{ in: isOpen(), fade: animation() }">
<div class="tooltip-arrow"></div>
<div class="tooltip-inner" ng-bind-html-unsafe="content"></div>
<div class="tooltip-inner" bind-html-unsafe="content"></div>
</div>

0 comments on commit 08d8b21

Please sign in to comment.