Skip to main content
Stack Overflow
  1. About
  2. For Teams

Timeline for answer to Passing a function with arguments as an argument? by Michał Perłakowski

Current License: CC BY-SA 3.0

Post Revisions

5 events
when toggle format what by license comment
Jun 7, 2022 at 5:58 comment added flatpickles I've been using fn.bind(this) to resolve the dreaded this confusion in callback functions without understanding the broader purpose of bind – but now I get it! Thanks 🙏
Sep 7, 2016 at 13:48 comment added Michał Perłakowski @Varun See Why is bind slower than a closure?
Sep 7, 2016 at 8:50 comment added Varun Which option is best ? Using closure or using the bind function ? Please let me know if there is any performance impact
Jun 16, 2016 at 10:13 comment added Thomas Thanks, this helped me. Used it like this: $.ajax(url).done(handler.bind(this, var1, var2));
Jan 2, 2016 at 14:33 history answered Michał Perłakowski CC BY-SA 3.0

AltStyle によって変換されたページ (->オリジナル) /