Check if the immediate node is an element before looking at ancestors when clicking, and flush pending layout changes after dispatching the event.
Check if the immediate node is an element before looking at ancestors when clicking, and flush pending layout changes after dispatching the event.

akosel/servo,ruud-v-a/servo,brendandahl/servo,pyecs/servo,tempbottle/servo,mbrubeck/servo,tschneidereit/servo,mbrubeck/servo,saneyuki/servo,caldwell/servo,KiChjang/servo,saratang/servo,snf/servo,A-deLuna/servo,steveklabnik/servo,vks/servo,s142857/servo,j3parker/servo,ConnorGBrewster/servo,evilpie/servo,juzer10/servo,mukilan/servo,tafia/servo,walac/servo,nrc/servo,dagnir/servo,dhananjay92/servo,fiji-flo/servo,WriterOfAlicrow/servo,g-k/servo,saneyuki/servo,nrc/servo,CJ8664/servo,avadacatavra/servo,echochamber/servo,DominoTree/servo,dati91/servo,bjwbell/servo,froydnj/servo,tempbottle/servo,rixrix/servo,steveklabnik/servo,evilpie/servo,mt2d2/servo,nrc/servo,zhangjunlei26/servo,boghison/servo,emilio/servo,codemac/servo,GyrosOfWar/servo,notriddle/servo,jdramani/servo,pyfisch/servo,Adenilson/prototype-viewing-distance,jdramani/servo,aweinstock314/servo,ruud-v-a/servo,caldwell/servo,SimonSapin/servo,shrenikgala/servo,splav/servo,rnestler/servo,kindersung/servo,GyrosOfWar/servo,wartman4404/servo,eddyb/servo,chotchki/servo,boghison/servo,jimberlage/servo,vks/servo,youprofit/servo,pyfisch/servo,notriddle/servo,j3parker/servo,A-deLuna/servo,rixrix/servo,emilio/servo,notriddle/servo,A-deLuna/servo,meh/servo,aweinstock314/servo,hyowon/servo,DominoTree/servo,GreenRecycleBin/servo,splav/servo,bfrohs/servo,peterjoel/servo,echochamber/servo,zhangjunlei26/servo,tschneidereit/servo,nick-thompson/servo,dmarcos/servo,srbhklkrn/SERVOENGINE,dhananjay92/servo,paulrouget/servo,mukilan/servo,bjwbell/servo,jgraham/servo,mt2d2/servo,avadacatavra/servo,jimberlage/servo,mdibaiee/servo,brendandahl/servo,michaelwu/servo,akosel/servo,pgonda/servo,kindersung/servo,nick-thompson/servo,notriddle/servo,aidanhs/servo,dati91/servo,rentongzhang/servo,larsbergstrom/servo,tempbottle/servo,dati91/servo,CJ8664/servo,rnestler/servo,luniv/servo,jimberlage/servo,AnthonyBroadCrawford/servo,srbhklkrn/SERVOENGINE,thiagopnts/servo,pyecs/servo,Adenilson/prototype-viewing-distance,indykish/servo,wpgallih/servo,cbrewster/servo,mbrubeck/servo,ConnorGBrewster/servo,KiChjang/servo,dhananjay92/servo,upsuper/servo,DominoTree/servo,hyowon/servo,jgraham/servo,zentner-kyle/servo,pyecs/servo,pyfisch/servo,zhangjunlei26/servo,rentongzhang/servo,j3parker/servo,tschneidereit/servo,GreenRecycleBin/servo,rixrix/servo,wpgallih/servo,rnestler/servo,saneyuki/servo,indykish/servo,bfrohs/servo,rixrix/servo,caldwell/servo,Adenilson/prototype-viewing-distance,jdramani/servo,wpgallih/servo,indykish/servo,runarberg/servo,dagnir/servo,mbrubeck/servo,shrenikgala/servo,DominoTree/servo,rnestler/servo,Shraddha512/servo,dmarcos/servo,tafia/servo,pyecs/servo,emilio/servo,ConnorGBrewster/servo,SimonSapin/servo,boghison/servo,nrc/servo,samfoo/servo,michaelwu/servo,splav/servo,snf/servo,jgraham/servo,paulrouget/servo,codemac/servo,thiagopnts/servo,thiagopnts/servo,paulrouget/servo,mdibaiee/servo,dagnir/servo,g-k/servo,saneyuki/servo,mt2d2/servo,canaltinova/servo,steveklabnik/servo,thiagopnts/servo,KiChjang/servo,caldwell/servo,boghison/servo,froydnj/servo,avadacatavra/servo,ruud-v-a/servo,upsuper/servo,mattnenterprise/servo,s142857/servo,avadacatavra/servo,froydnj/servo,ryancanhelpyou/servo,jlegendary/servo,Adenilson/prototype-viewing-distance,s142857/servo,wpgallih/servo,jimberlage/servo,michaelwu/servo,DominoTree/servo,hyowon/servo,dsandeephegde/servo,rentongzhang/servo,cbrewster/servo,rixrix/servo,nnethercote/servo,walac/servo,nnethercote/servo,RenaudParis/servo,fiji-flo/servo,youprofit/servo,bfrohs/servo,boghison/servo,WriterOfAlicrow/servo,mt2d2/servo,juzer10/servo,mattnenterprise/servo,jdramani/servo,RenaudParis/servo,walac/servo,peterjoel/servo,Adenilson/prototype-viewing-distance,hyowon/servo,steveklabnik/servo,akosel/servo,SimonSapin/servo,karlito40/servo,shrenikgala/servo,tafia/servo,runarberg/servo,rixrix/servo,GyrosOfWar/servo,cbrewster/servo,snf/servo,indykish/servo,karlito40/servo,paulrouget/servo,chotchki/servo,dhananjay92/servo,srbhklkrn/SERVOENGINE,huonw/servo,walac/servo,pgonda/servo,tschneidereit/servo,saneyuki/servo,echochamber/servo,thiagopnts/servo,upsuper/servo,CJ8664/servo,froydnj/servo,luniv/servo,nnethercote/servo,deokjinkim/servo,wpgallih/servo,anthgur/servo,shrenikgala/servo,szeged/servo,snf/servo,hyowon/servo,SimonSapin/servo,dvberkel/servo,nick-thompson/servo,eddyb/servo,CJ8664/servo,dsandeephegde/servo,mbrubeck/servo,akosel/servo,vks/servo,dsandeephegde/servo,ConnorGBrewster/servo,chotchki/servo,kindersung/servo,vks/servo,runarberg/servo,nrc/servo,caldwell/servo,GreenRecycleBin/servo,froydnj/servo,canaltinova/servo,thiagopnts/servo,nnethercote/servo,canaltinova/servo,karlito40/servo,kindersung/servo,indykish/servo,A-deLuna/servo,paulrouget/servo,eddyb/servo,fiji-flo/servo,SimonSapin/servo,szeged/servo,nnethercote/servo,g-k/servo,saratang/servo,deokjinkim/servo,nerith/servo,jimberlage/servo,nnethercote/servo,pyfisch/servo,juzer10/servo,paulrouget/servo,WriterOfAlicrow/servo,shrenikgala/servo,DominoTree/servo,wpgallih/servo,splav/servo,echochamber/servo,pgonda/servo,tafia/servo,tafia/servo,GreenRecycleBin/servo,evilpie/servo,ConnorGBrewster/servo,luniv/servo,juzer10/servo,dhananjay92/servo,snf/servo,mukilan/servo,notriddle/servo,runarberg/servo,srbhklkrn/SERVOENGINE,karlito40/servo,nerith/servo,j3parker/servo,szeged/servo,zhangjunlei26/servo,RenaudParis/servo,aidanhs/servo,saratang/servo,pyecs/servo,splav/servo,evilpie/servo,canaltinova/servo,evilpie/servo,GyrosOfWar/servo,brendandahl/servo,mattnenterprise/servo,saneyuki/servo,j3parker/servo,akosel/servo,deokjinkim/servo,deokjinkim/servo,ConnorGBrewster/servo,notriddle/servo,canaltinova/servo,s142857/servo,runarberg/servo,DominoTree/servo,SimonSapin/servo,deokjinkim/servo,samfoo/servo,aweinstock314/servo,Shraddha512/servo,fiji-flo/servo,cbrewster/servo,anthgur/servo,wpgallih/servo,GreenRecycleBin/servo,dmarcos/servo,nnethercote/servo,KiChjang/servo,jlegendary/servo,saratang/servo,juzer10/servo,notriddle/servo,paulrouget/servo,caldwell/servo,srbhklkrn/SERVOENGINE,wpgallih/servo,Shraddha512/servo,eddyb/servo,GyrosOfWar/servo,youprofit/servo,larsbergstrom/servo,DominoTree/servo,huonw/servo,nick-thompson/servo,youprofit/servo,pyfisch/servo,juzer10/servo,codemac/servo,nick-thompson/servo,mbrubeck/servo,zentner-kyle/servo,bjwbell/servo,kindersung/servo,rixrix/servo,aweinstock314/servo,dsandeephegde/servo,bjwbell/servo,youprofit/servo,bfrohs/servo,g-k/servo,jimberlage/servo,anthgur/servo,Shraddha512/servo,saneyuki/servo,SimonSapin/servo,j3parker/servo,evilpie/servo,vks/servo,karlito40/servo,WriterOfAlicrow/servo,jimberlage/servo,nerith/servo,steveklabnik/servo,CJ8664/servo,g-k/servo,pyfisch/servo,GreenRecycleBin/servo,AnthonyBroadCrawford/servo,peterjoel/servo,larsbergstrom/servo,tafia/servo,sadmansk/servo,upsuper/servo,tempbottle/servo,brendandahl/servo,mattnenterprise/servo,dagnir/servo,mt2d2/servo,tempbottle/servo,aweinstock314/servo,dagnir/servo,samfoo/servo,saratang/servo,anthgur/servo,emilio/servo,huonw/servo,kindersung/servo,aidanhs/servo,tempbottle/servo,szeged/servo,peterjoel/servo,codemac/servo,GreenRecycleBin/servo,rnestler/servo,A-deLuna/servo,GreenRecycleBin/servo,froydnj/servo,wartman4404/servo,dmarcos/servo,dsandeephegde/servo,A-deLuna/servo,dvberkel/servo,GyrosOfWar/servo,nnethercote/servo,rixrix/servo,wartman4404/servo,Shraddha512/servo,dhananjay92/servo,larsbergstrom/servo,jgraham/servo,eddyb/servo,chotchki/servo,juzer10/servo,emilio/servo,zhangjunlei26/servo,michaelwu/servo,deokjinkim/servo,notriddle/servo,sadmansk/servo,bjwbell/servo,WriterOfAlicrow/servo,dhananjay92/servo,samfoo/servo,shrenikgala/servo,nerith/servo,RenaudParis/servo,notriddle/servo,rentongzhang/servo,dati91/servo,huonw/servo,mukilan/servo,DominoTree/servo,brendandahl/servo,dvberkel/servo,szeged/servo,akosel/servo,pyfisch/servo,ryancanhelpyou/servo,bfrohs/servo,pyfisch/servo,mbrubeck/servo,larsbergstrom/servo,fiji-flo/servo,nrc/servo,luniv/servo,AnthonyBroadCrawford/servo,larsbergstrom/servo,avadacatavra/servo,mdibaiee/servo,pgonda/servo,dati91/servo,rnestler/servo,peterjoel/servo,RenaudParis/servo,szeged/servo,emilio/servo,larsbergstrom/servo,meh/servo,rnestler/servo,saneyuki/servo,mdibaiee/servo,g-k/servo,aidanhs/servo,szeged/servo,j3parker/servo,vks/servo,nerith/servo,runarberg/servo,szeged/servo,avadacatavra/servo,dmarcos/servo,pyfisch/servo,peterjoel/servo,emilio/servo,zhangjunlei26/servo,AnthonyBroadCrawford/servo,mattnenterprise/servo,zhangjunlei26/servo,pyfisch/servo,jimberlage/servo,emilio/servo,wartman4404/servo,codemac/servo,evilpie/servo,jgraham/servo,KiChjang/servo,saratang/servo,dagnir/servo,sadmansk/servo,cbrewster/servo,jgraham/servo,RenaudParis/servo,tschneidereit/servo,Shraddha512/servo,jdramani/servo,mbrubeck/servo,samfoo/servo,sadmansk/servo,zentner-kyle/servo,sadmansk/servo,WriterOfAlicrow/servo,anthgur/servo,jimberlage/servo,brendandahl/servo,nerith/servo,hyowon/servo,walac/servo,AnthonyBroadCrawford/servo,splav/servo,samfoo/servo,A-deLuna/servo,dsandeephegde/servo,steveklabnik/servo,dagnir/servo,echochamber/servo,cbrewster/servo,AnthonyBroadCrawford/servo,srbhklkrn/SERVOENGINE,indykish/servo,mattnenterprise/servo,notriddle/servo,boghison/servo,pyecs/servo,paulrouget/servo,walac/servo,splav/servo,srbhklkrn/SERVOENGINE,pgonda/servo,mdibaiee/servo,youprofit/servo,larsbergstrom/servo,evilpie/servo,meh/servo,dati91/servo,zhangjunlei26/servo,dvberkel/servo,dvberkel/servo,splav/servo,CJ8664/servo,nrc/servo,codemac/servo,tschneidereit/servo,jlegendary/servo,mt2d2/servo,WriterOfAlicrow/servo,canaltinova/servo,bjwbell/servo,rixrix/servo,GreenRecycleBin/servo,rnestler/servo,upsuper/servo,KiChjang/servo,szeged/servo,pgonda/servo,dmarcos/servo,chotchki/servo,fiji-flo/servo,hyowon/servo,caldwell/servo,huonw/servo,Adenilson/prototype-viewing-distance,ryancanhelpyou/servo,akosel/servo,mattnenterprise/servo,avadacatavra/servo,zentner-kyle/servo,dati91/servo,Shraddha512/servo,szeged/servo,thiagopnts/servo,nick-thompson/servo,dati91/servo,rentongzhang/servo,kindersung/servo,upsuper/servo,nnethercote/servo,thiagopnts/servo,jgraham/servo,wartman4404/servo,AnthonyBroadCrawford/servo,paulrouget/servo,emilio/servo,emilio/servo,chotchki/servo,runarberg/servo,indykish/servo,saratang/servo,jlegendary/servo,anthgur/servo,wartman4404/servo,meh/servo,mukilan/servo,dsandeephegde/servo,rentongzhang/servo,dvberkel/servo,tempbottle/servo,zentner-kyle/servo,DominoTree/servo,indykish/servo,aidanhs/servo,aweinstock314/servo,ruud-v-a/servo,mdibaiee/servo,canaltinova/servo,sadmansk/servo,luniv/servo,anthgur/servo,steveklabnik/servo,snf/servo,eddyb/servo,evilpie/servo,nerith/servo,ConnorGBrewster/servo,upsuper/servo,jdramani/servo,brendandahl/servo,g-k/servo,KiChjang/servo,saneyuki/servo,eddyb/servo,aweinstock314/servo,larsbergstrom/servo,peterjoel/servo,paulrouget/servo,mattnenterprise/servo,aidanhs/servo,s142857/servo,youprofit/servo,indykish/servo,samfoo/servo,ryancanhelpyou/servo,tafia/servo,upsuper/servo,pgonda/servo,nick-thompson/servo,zhangjunlei26/servo,KiChjang/servo,michaelwu/servo,anthgur/servo,jlegendary/servo,huonw/servo,shrenikgala/servo,sadmansk/servo,michaelwu/servo,meh/servo,peterjoel/servo,dmarcos/servo,huonw/servo,echochamber/servo,deokjinkim/servo,zentner-kyle/servo,boghison/servo,GyrosOfWar/servo,bfrohs/servo,SimonSapin/servo,luniv/servo,mt2d2/servo,ConnorGBrewster/servo,saneyuki/servo,fiji-flo/servo,walac/servo,mukilan/servo,splav/servo,fiji-flo/servo,zentner-kyle/servo,RenaudParis/servo,luniv/servo,s142857/servo,KiChjang/servo,wpgallih/servo,mdibaiee/servo,larsbergstrom/servo,rentongzhang/servo,dvberkel/servo,jlegendary/servo,sadmansk/servo,eddyb/servo,bjwbell/servo,CJ8664/servo,canaltinova/servo,jdramani/servo,ruud-v-a/servo,ryancanhelpyou/servo,dsandeephegde/servo,vks/servo,aidanhs/servo,codemac/servo,splav/servo,snf/servo,cbrewster/servo,CJ8664/servo,meh/servo,s142857/servo,KiChjang/servo,wartman4404/servo,ruud-v-a/servo,peterjoel/servo,jlegendary/servo,ryancanhelpyou/servo,ryancanhelpyou/servo,karlito40/servo,tschneidereit/servo,peterjoel/servo,pyecs/servo,nnethercote/servo,Adenilson/prototype-viewing-distance,karlito40/servo,avadacatavra/servo,echochamber/servo,cbrewster/servo,meh/servo