diff --git a/src/popover/docs/demo.html b/src/popover/docs/demo.html index ffde3bc007..2a9bdfb1b4 100644 --- a/src/popover/docs/demo.html +++ b/src/popover/docs/demo.html @@ -13,7 +13,6 @@

Positional

-

Triggers

diff --git a/src/popover/docs/readme.md b/src/popover/docs/readme.md index d69d415891..fff994d6a5 100644 --- a/src/popover/docs/readme.md +++ b/src/popover/docs/readme.md @@ -9,7 +9,7 @@ will display: - `popover-title`: A string to display as a fancy title. - `popover-placement`: Where to place it? Defaults to "top", but also accepts - "bottom", "left", "right", or "mouse". + "bottom", "left", "right". - `popover-animation`: Should it fade in and out? Defaults to "true". - `popover-popup-delay`: For how long should the user have to have the mouse over the element before the popover shows (in milliseconds)? Defaults to 0. diff --git a/src/position/position.js b/src/position/position.js index 727a85e85d..b32cbe9a2b 100644 --- a/src/position/position.js +++ b/src/position/position.js @@ -8,13 +8,6 @@ angular.module('ui.bootstrap.position', []) */ .factory('$position', ['$document', '$window', function ($document, $window) { - var mouseX, mouseY; - - $document.bind('mousemove', function mouseMoved(event) { - mouseX = event.pageX; - mouseY = event.pageY; - }); - function getStyle(el, cssprop) { if (el.currentStyle) { //IE return el.currentStyle[cssprop]; @@ -81,13 +74,6 @@ angular.module('ui.bootstrap.position', []) top: boundingClientRect.top + ($window.pageYOffset || $document[0].body.scrollTop), left: boundingClientRect.left + ($window.pageXOffset || $document[0].body.scrollLeft) }; - }, - - /** - * Provides the coordinates of the mouse - */ - mouse: function () { - return {x: mouseX, y: mouseY}; } }; }]); diff --git a/src/tooltip/docs/demo.html b/src/tooltip/docs/demo.html index 8518881e85..68c053c531 100644 --- a/src/tooltip/docs/demo.html +++ b/src/tooltip/docs/demo.html @@ -12,9 +12,7 @@ nunc sed velit dignissim sodales ut eu sem integer vitae. Turpis egestas bottom pharetra convallis posuere morbi leo urna, - mouse - blah blah blah, - fading + fading at elementum eu, facilisis sed odio morbi quis commodo odio. In cursus delayed turpis massa tincidunt dui ut.

diff --git a/src/tooltip/docs/readme.md b/src/tooltip/docs/readme.md index 9d812d8e3f..e7e494f933 100644 --- a/src/tooltip/docs/readme.md +++ b/src/tooltip/docs/readme.md @@ -11,7 +11,7 @@ The tooltip directives provide several optional attributes to control how they will display: - `tooltip-placement`: Where to place it? Defaults to "top", but also accepts - "bottom", "left", "right", or "mouse". + "bottom", "left", "right". - `tooltip-animation`: Should it fade in and out? Defaults to "true". - `tooltip-popup-delay`: For how long should the user have to have the mouse over the element before the tooltip shows (in milliseconds)? Defaults to 0. diff --git a/src/tooltip/tooltip.js b/src/tooltip/tooltip.js index 28eb9e513e..7fe8ed025c 100644 --- a/src/tooltip/tooltip.js +++ b/src/tooltip/tooltip.js @@ -184,13 +184,6 @@ angular.module( 'ui.bootstrap.tooltip', [ 'ui.bootstrap.position' ] ) // Calculate the tooltip's top and left coordinates to center it with // this directive. switch ( scope.tt_placement ) { - case 'mouse': - var mousePos = $position.mouse(); - ttPosition = { - top: mousePos.y, - left: mousePos.x - }; - break; case 'right': ttPosition = { top: position.top + position.height / 2 - ttHeight / 2,