A more modest valHooks proposal
A more modest valHooks proposal

- 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.

isaacs/jquery,hoorayimhelping/jquery,diracdeltas/jquery,jquery/jquery,rwaldron/jquery,eburgos/jquery,roytoo/jquery,sancao2/jquery,Karyotyper/jquery,demetr84/Jquery,scottjehl/jquery,ilyakharlamov/jquery-xul,ilyakharlamov/jquery-xul,gnarf/jquery,kpozin/jquery-nodom,diracdeltas/jquery,hoorayimhelping/jquery,gnarf/jquery,roytoo/jquery,jquery/jquery,chitranshi/jquery,Karyotyper/jquery,dtjm/jquery,npmcomponent/component-jquery,diracdeltas/jquery,kpozin/jquery-nodom,npmcomponent/component-jquery,RubyLouvre/jquery,fat/jquery,dtjm/jquery,praveen9102/Shazam,isaacs/jquery,chitranshi/jquery,eburgos/jquery,sancao2/jquery,Karyotyper/jquery,scottjehl/jquery,quiaro/request-agent,sancao2/jquery,jcutrell/jquery,demetr84/Jquery,praveen9102/Shazam,fat/jquery,eburgos/jquery,rwaldron/jquery,roytoo/jquery,jcutrell/jquery,jquery/jquery,RubyLouvre/jquery