Removed unnecessary uses of typeof undefined.

This commit is contained in:
John Resig 2007-01-12 03:53:55 +00:00
parent 5b7f34d74b
commit 39b0976e3e
2 changed files with 2 additions and 2 deletions

View file

@ -133,7 +133,7 @@ jQuery.event = {
event.target = event.srcElement; event.target = event.srcElement;
// Calculate pageX/Y if missing and clientX/Y available // 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; var e = document.documentElement, b = document.body;
event.pageX = event.clientX + (e.scrollLeft || b.scrollLeft); event.pageX = event.clientX + (e.scrollLeft || b.scrollLeft);
event.pageY = event.clientY + (e.scrollTop || b.scrollTop); event.pageY = event.clientY + (e.scrollTop || b.scrollTop);

View file

@ -1 +1 @@
} // close: if(typeof window.jQuery == "undefined") { }