Skip to content
Permalink
Browse files
Removed unnecessary uses of typeof undefined.
  • Loading branch information
jeresig committed Jan 12, 2007
1 parent 5b7f34d commit 39b0976e3ed605ec985a6171b059f20ad566808d
Showing with 2 additions and 2 deletions.
  1. +1 −1 src/event/event.js
  2. +1 −1 src/outro.js
@@ -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") {
}

0 comments on commit 39b0976

Please sign in to comment.