Removed unnecessary uses of typeof undefined.
This commit is contained in:
parent
5b7f34d74b
commit
39b0976e3e
2 changed files with 2 additions and 2 deletions
|
@ -133,7 +133,7 @@ jQuery.event = {
|
|||
event.target = event.srcElement;
|
||||
|
||||
// Calculate pageX/Y if missing and clientX/Y available
|
||||
if ( typeof event.pageX == "undefined" && typeof event.clientX != "undefined" ) {
|
||||
if ( event.pageX == undefined && event.clientX != undefined ) {
|
||||
var e = document.documentElement, b = document.body;
|
||||
event.pageX = event.clientX + (e.scrollLeft || b.scrollLeft);
|
||||
event.pageY = event.clientY + (e.scrollTop || b.scrollTop);
|
||||
|
|
|
@ -1 +1 @@
|
|||
} // close: if(typeof window.jQuery == "undefined") {
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue