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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T07:46:48+00:00 2026-06-18T07:46:48+00:00

Javascript in a web application runs the following loop: for (var name in this)

  • 0

Javascript in a web application runs the following loop:

    for (var name in this) {
        if(typeof(this[name]) == "function") {
            if((/^on_|^do_/).test(name)) {
        console.debug("Adding ", name, " to ", this, "(", this[name], ")");
                f = this[name].bind;
        console.debug(f);
                this[name] = this[name].bind(this);
            }
        }
    }

Under Chrome 24.0.1312.56, the line f = this[name].bind correctly sets f to the native code function.bind(), while in my QWebKit Qt application it sets f to ‘undefined’.

https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Function/bind

Any idea how I’d be able to convince QtWebkit to behave correctly here?


Apparently, Function.prototype.bind is part of ECMAScript 5. It’s implementation in webkit should be covered by (fixed bug): https://bugs.webkit.org/show_bug.cgi?id=26382

Perhaps there is a mode to enable ECMAScript 5 that i’m missing?


Apparently i’m using version 534.34 for QtWebkit:

(Pdb) str(QtWebKit.qWebKitVersion())
‘534.34’

Which according to this:
https://trac.webkit.org/changeset/85696/trunk/Source/WebKit/mac/Configurations/Version.xcconfig

Corresponds to revision 85696. Combined with the comment in the above bug (“Fixed in r95751”), seems like I need a newer version, specifically anything better than 535.5. Now to find what version of PyQt uses that…

Thanks.

  • 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-18T07:46:50+00:00Added an answer on June 18, 2026 at 7:46 am

    It seems that the latest version of PyQt (4.9.6-1) is compiled against wekbit version 534.34.
    The first release of webkit that supports Function.prototype.bind is 535.5.

    In addition, it seems that both PySite 1.2.2 and PyQt 4.9.6-1 report webkit version 535.34, and do not have Function.prototype.bind.

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

Sidebar

Related Questions

I am reading javascript web application and the author is using following code: mod.load
I currently have a Web Application that runs off a global Javascript-based API, and
I need to call javascript function from Flash 4 based web application. When I
I want to add printing to my Javascript web application. The application is developed
In JavaScript code of web application, the table sorter is defined by: $(#my-table).tablesorter({ headers:
The JavaScript in my web application has grown into one huge file. I want
When working on some Javascript for a web application, I noticed that I had
I have web application of which major part is javascript. I request images from
I'm building a web-application in JavaScript using the dojo framework. I want to create
I have a web application written in ASP.NEt/C# and javascript. It uses session variables.

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.