desandro / imagesloaded

:camera: JavaScript is all like "You images done yet or what?"
https://imagesloaded.desandro.com
MIT License
8.88k stars 1.15k forks source link

.bind deprecated #296

Closed BackuPs closed 3 years ago

BackuPs commented 3 years ago

hi

.bind in jquery is deprecated. How to rewrite this code?

        setTimeout( this.check.bind( this ) );

Thank you !

desandro commented 3 years ago

This is using Function.prototype.bind