aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJohn Resig <jeresig@gmail.com>2007-01-12 03:53:55 +0000
committerJohn Resig <jeresig@gmail.com>2007-01-12 03:53:55 +0000
commit39b0976e3ed605ec985a6171b059f20ad566808d (patch)
tree8a476d507c45b36d3b09f6062d115a8708ca8714 /src
parent5b7f34d74bd78c97d86ae82f2899d0ce6d04b0c3 (diff)
downloadjquery-39b0976e3ed605ec985a6171b059f20ad566808d.tar.gz
jquery-39b0976e3ed605ec985a6171b059f20ad566808d.zip
Removed unnecessary uses of typeof undefined.
Diffstat (limited to 'src')
-rw-r--r--src/event/event.js2
-rw-r--r--src/outro.js2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/event/event.js b/src/event/event.js
index 9b5d46ea3..b9f130b6c 100644
--- a/src/event/event.js
+++ b/src/event/event.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);
diff --git a/src/outro.js b/src/outro.js
index 92e105bba..5c34318c2 100644
--- a/src/outro.js
+++ b/src/outro.js
@@ -1 +1 @@
-} // close: if(typeof window.jQuery == "undefined") {
+}