MouseTracker Original Events in handlers

Comment & Formatting fixes
This commit is contained in:
Mark Salsbery 2013-09-06 10:43:39 -07:00
parent b3fa8f1184
commit 56f5b9fb74
4 changed files with 854 additions and 862 deletions

View File

@ -184,9 +184,8 @@ $.Button = function( options ) {
}
},
// TODO: This didn't match handler signature in MouseTracker. Investigate!
focusHandler: function ( tracker, eventData ) { //position, buttonDownElement, buttonDownAny
//this.enterHandler( tracker, eventData ); //position, buttonDownElement, buttonDownAny
focusHandler: function ( tracker, eventData ) {
this.enterHandler( tracker, eventData );
_this.raiseEvent( "onFocus", _this );
},
@ -197,9 +196,8 @@ $.Button = function( options ) {
}
},
// TODO: This didn't match handler signature in MouseTracker. Investigate!
blurHandler: function ( tracker, eventData ) { //position, buttonDownElement, buttonDownAny
//this.exitHandler( tracker, eventData ); //position, buttonDownElement, buttonDownAny
blurHandler: function ( tracker, eventData ) {
this.exitHandler( tracker, eventData );
_this.raiseEvent( "onBlur", _this );
},

View File

@ -705,7 +705,6 @@ window.OpenSeadragon = window.OpenSeadragon || function( options ){
* @name OpenSeadragon.getElementOffset
* @param {Element|String} element - the element we want the position for.
* @returns {Point} - the position of the upper left corner of the element adjusted for current page and/or element scroll.
* Inspired by jQuery.fn.offset() (jquery 1.10.1)
*/
getElementOffset: function( element ) {
var doc = element && element.ownerDocument,
@ -719,11 +718,6 @@ window.OpenSeadragon = window.OpenSeadragon || function( options ){
docElement = doc.documentElement;
// Make sure it's not a disconnected DOM node
//if ( !jQuery.contains( docElement, element ) ) {
// return new $.Point();
//}
if ( typeof element.getBoundingClientRect !== typeof undefined ) {
boundingRect = element.getBoundingClientRect();
}