Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8326499
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T00:46:53+00:00 2026-06-09T00:46:53+00:00

So ever once in a while, just for fun, I check out the source

  • 0

So ever once in a while, just for fun, I check out the source of Facebook to find all kinds of crazy javascript.

So in the keyup of the textarea on the facebook chat, i found:

Bootloader.loadComponents(["control-textarea"], function () {
    TextAreaControl.getInstance(this)
}.bind(this));

This didn’t seem to interest me until I relized that .bind() is added directly to that function.

I didn’t know you can do that.

Can any function be after to another function(){} just like that? Or is there a special way you need to do this.

I know you can chain stuff like "How are you doing!".replace(/\w{3}/g,'').toUpperCase(), but didn’t think you chain directly to the function(){} itself.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T00:46:55+00:00Added an answer on June 9, 2026 at 12:46 am

    .bind is a property available on Function objects in ES5 environments, or where .bind has been added to Function.prototype. It’s just like any other property available on an object or via the prototype chain.

    The .bind method returns a new function with its calling context (and arguments if provided) permanently bound to that new function. The new function invokes the code body of the original function, so aside from the bound context and args, the behavior is otherwise the same.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want the variable minne to be counted upwards once ever time I run
Once in a while, I notice some coding pattern that I've had for years
I see code on StackOverflow every once in a while, asking about some overload
Ever since I created this Rails 3.2.3 project to use MiniTest, I have been
Ever since ereg became depreciated, I began to use preg_match. Unfortunately in my code,
Ever since I discovered sockets, I've been using the nonblocking variants, since I didn't
Ever since I upgraded to Delphi 2009, I am having terrible experience with TFrame
Ever since I gained experience at a software house I have found it difficult
Ever since deleting the original settings.settings file I have had endless problems getting the
Ever since I installed emacs on a new machine I have seen an ugly

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.