Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

jquery event & fx: tidying some comments.

  • Loading branch information...
commit 20a7bff4019a93fd7cee04897effd49af8be4de4 1 parent 70b5e67
@flesler flesler authored
Showing with 6 additions and 3 deletions.
  1. +4 −2 src/event.js
  2. +2 −1  src/fx.js
View
6 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: {
View
3  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){
Please sign in to comment.
Something went wrong with that request. Please try again.