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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T23:54:43+00:00 2026-06-09T23:54:43+00:00

I have started creating an Undo script for the canvas element. It is far

  • 0

I have started creating an Undo script for the canvas element. It is far from complete, but the basics are in place. The code runs well in Chrome, Safari, and Opera yet throws errors in IE and Firefox. The error in Firefox is NS_ERROR_XPC_BAD_OP_ON_WN_PROTO: Illegal operation on WrappedNative prototype object and the error on IE is Invalid calling object.

Both errors are about the line that is: var original = context[p]; in the bind() function.

Here is my code: http://jsfiddle.net/evankennedy/cDdJd/

  • 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-09T23:54:45+00:00Added an answer on June 9, 2026 at 11:54 pm

    Some browsers don’t like it when you try to wrap methods of a native object in your own code. It’s a security “feature”.

    You would be better off creating an entirely new object class that wraps the context and then proxies its methods (and properties).

    This would also avoid the need for your history.write state since the undo and redo methods would still have access to the original methods.

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

Sidebar

Related Questions

I have not started creating the code so I don't have anything to show,
I have started using django-piston for creating APIS but I am having trouble finding
I've just started creating Unit Tests for my code again. I have had PHPUnit
I have started to look away from the normal MVC way of creating my
I just started creating android apps, but i have a problem changing the layout
I have just started researching creating mobile apps and from what I understand one
I've started creating a MonkeyRunner script. This is going ok, but whenever I add
I have started creating a game, and I added a second project, it's the
I have recently started creating an iPhone application using Appcelerator's Titanium. Since the application
I started creating file downloader class. Here is what i have: public class Downloader

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.