jeudi 13 août 2015

what does jquery focus.bind(domObj) do?

so I encountered this code:

setTimeout(domObj.focus.bind(domObj), 500);

What does that do in plain English?

what does focus.bind do?

and what would passing a domOBj into the bind() function accomplish?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire