aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAriel Flesler <aflesler@gmail.com>2008-05-13 01:42:35 +0000
committerAriel Flesler <aflesler@gmail.com>2008-05-13 01:42:35 +0000
commit20a7bff4019a93fd7cee04897effd49af8be4de4 (patch)
tree324b931b98744e386c3c79c9c31206048e4deeef
parent70b5e670ca6f0c915232139db8e6766aa2c191d4 (diff)
downloadjquery-20a7bff4019a93fd7cee04897effd49af8be4de4.tar.gz
jquery-20a7bff4019a93fd7cee04897effd49af8be4de4.zip
jquery event & fx: tidying some comments.
-rw-r--r--src/event.js6
-rw-r--r--src/fx.js3
2 files changed, 6 insertions, 3 deletions
diff --git a/src/event.js b/src/event.js
index a255f5515..40815ecf0 100644
--- a/src/event.js
+++ b/src/event.js
@@ -244,7 +244,8 @@ jQuery.event = {
namespace = event.type.split(".");
event.type = namespace[0];
namespace = namespace[1];
- all = !namespace && !event.exclusive; //cache this now, all = true means, any handler
+ // Cache this now, all = true means, any handler
+ all = !namespace && !event.exclusive;
handlers = ( jQuery.data(this, "events") || {} )[event.type];
@@ -346,7 +347,8 @@ jQuery.event = {
proxy: function( fn, proxy ){
// Set the guid of unique handler to the same of original handler, so it can be removed
proxy.guid = fn.guid = fn.guid || proxy.guid || this.guid++;
- return proxy;//so proxy can be declared as an argument
+ // So proxy can be declared as an argument
+ return proxy;
},
special: {
diff --git a/src/fx.js b/src/fx.js
index 1a4e8c946..3404ddbcd 100644
--- a/src/fx.js
+++ b/src/fx.js
@@ -405,7 +405,8 @@ jQuery.extend( jQuery.fx, {
speeds:{
slow: 600,
fast: 200,
- def: 400 //default speed
+ // Default speed
+ def: 400
},
step: {
scrollLeft: function(fx){