• timmywil's avatar
    A more modest valHooks proposal · 64a0005a
    timmywil authored
    - The main difference is that this does not allow arbitrarily adding hooks to any collection of elements.
    
    - Modularizes val into a set of easily maintainable and conditional hooks.
    
    - valHooks is placed at jQuery.valHooks
    
      + This could technically be extended, but I do not see it being used except in very rare cases since you can only apply valHooks to nodeNames and input types, and not a collection of elements as before. We could theoretically privatize valHooks taking it off of jQuery and only use it internally for our own convenience, but again, I do not believe this patch carries with it the dangers of the first proposal.
    
    - Slightly improved performance of val on radios and checkboxes for browsers that support checkOn, given the conditional attachment of its hook.
    64a0005a
Name
Last commit
Last update
build Loading commit data...
speed Loading commit data...
src Loading commit data...
test Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
.gitmodules Loading commit data...
GPL-LICENSE.txt Loading commit data...
MIT-LICENSE.txt Loading commit data...
Makefile Loading commit data...
README.md Loading commit data...
version.txt Loading commit data...