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

Commit

Permalink
Revert "Merge branch 'position-fix' of https://github.com/RobJacobs/b…
Browse files Browse the repository at this point in the history
…ootstrap"

This reverts commit a25caa7, reversing
changes made to 00ac93e.
  • Loading branch information
RobJacobs committed Jan 14, 2016
1 parent a25caa7 commit ea54221
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/position/position.js
Original file line number Diff line number Diff line change
Expand Up @@ -464,13 +464,17 @@ angular.module('ui.bootstrap.position', [])
positionArrow: function(elem, placement) {
elem = this.getRawNode(elem);

var innerElem = elem.querySelector('.tooltip-inner, .popover-inner');
var isTooltip = true;

var innerElem = elem.querySelector('.tooltip-inner');
if (!innerElem) {
isTooltip = false;
innerElem = elem.querySelector('.popover-inner');
}
if (!innerElem) {
return;
}

var isTooltip = angular.element(innerElem).hasClass('tooltip-inner');

var arrowElem = isTooltip ? elem.querySelector('.tooltip-arrow') : elem.querySelector('.arrow');
if (!arrowElem) {
return;
Expand Down

0 comments on commit ea54221

Please sign in to comment.