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
Post a Comment