Adding in the change recommended by Alexander Farkas to fix some bugs in the change delegation logic. Fixes #5851.
Adding in the change recommended by Alexander Farkas to fix some bugs in the change delegation logic. Fixes #5851.

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