When using JQuery, why add properties to events (click.myFunc, scroll.myFunc, resize.myFunc etc) -


i'm looking on scripting has .scrolling properties of jquery events:

$(window).on({         'click.scrolling' : function( event ) {             //stuff         },           'scroll.scrolling' : function( event ) {             //stuff         }     }); 

is ".scrolling" property coder added readability? if remove ".scrolling," page still operates same.


Comments

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -