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 6107381
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T14:10:57+00:00 2026-05-23T14:10:57+00:00

If I browse to about:blank, open the script console and type the following: var

  • 0

If I browse to about:blank, open the script console and type the following:

var x = function() {
    console.info(this.toString() + ' -- ' + arguments.length.toString());
};
x.bind;

The response shows that x.bind is implemented in native code:

function bind() { [native code] }

However, when I pull up the script console on a page of my web app and execute the same statements, it looks like x.bind is not natively impplemented:

function (a){var b=this;return function(){b.apply(a,arguments)}}

What would cause this implementation to switch like this? Is there potentially something I’m setting in my javascript that could cause this? I’m using jQuery on the page – would that have an impact?

  • 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-05-23T14:10:57+00:00Added an answer on May 23, 2026 at 2:10 pm

    Not jQuery, but some other libraries/scripts add bind to Function.prototype, and some of them do it without checking if it’s already there, happily overwriting the native implementation. I assume you must be using some other script (besides jQuery) on the page, and that other script (whether it’s a jQuery plug-in or whatever) is overwriting without checking.

    I’ve just tested in Chrome, and regardless of whether I have jQuery loaded or not, from within an actual page looking at a function’s bind property shows the native code marker. (In contrast, if I load the latest Prototype, it overwrites Chrome’s native version with its own.)

    Example with page with no libraries, output on Chrome:

    Prototype not loaded
    jQuery not loaded
    function bind() { [native code] }

    Example with page with latest jQuery, output on Chrome:

    Prototype not loaded
    jQuery found: 1.6.2
    function bind() { [native code] }

    Example with page with latest Prototype, output on Chrome:

    Prototype found: 1.7
    jQuery not loaded
    function bind(context) { if (arguments.length < 2 && Object.isUndefined(arguments[0])) return this; var __method = this, args = slice.call(arguments, 1); return function() { var a = merge(args, arguments); return __method.apply(context, a); } }

    From your example, you’re not loading the latest Prototype, but something is overwriting Function.prototype.bind.

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

Sidebar

Related Questions

Does anybody know a proper, cross-browser way to empty an IFrame? Is about:blank recognized
I have little question about how web browser retrieve webpage? I know this User
i've met a strange behaviour in Firefox with this simple script: <html> <head> <script
I've got the WebBrowser control to open links in my default browser like this:
I try to open multiple browser windows using javascript and the window.open() function. I
I have the following javascript code, which loads without error, however the update function
I'm having a slight problem. I have set my <input type=file> to onChange=this.form.submit() .
Is there a difference beetwen #1 and #2? I'm thinking about cross browser compatibility
There are lots of questions about how to force the browser to cache or
I have a question about the behavior of a browser( especially Firefox ) tackling

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.