This commit is contained in:
Spencer Alger 2014-10-21 11:45:24 -07:00
parent 49b183deba
commit e275aa617a
2 changed files with 4 additions and 3 deletions

View file

@ -119,7 +119,7 @@ define(function (require) {
positionTooltip.getOverflow = getOverflow;
positionTooltip.getBounds = getBounds;
positionTooltip.placeToAvoidOverflow = placeToAvoidOverflow;
positionTooltip.removeClone = function () {
positionTooltip.destroyClone = function () {
$clone && $clone.remove();
$clone = null;
};

View file

@ -24,8 +24,7 @@ define(function (require) {
width: size.width,
height: size.height,
visibility: 'hidden'
})
.appendTo('body');
});
if ($children) {
$el.append($children);
@ -42,6 +41,8 @@ define(function (require) {
$tooltip = testEl([50, 100], [35, 75])
)
);
$(document.body).append($window);
});
afterEach(function () {