Hello everyone,
Thank you for all your replies. Everyone is welcome to help :)  I
guess we could start by making a list of functions, and what data
types and other limitations they expect. E.g. ".html" allows only
strings or nothing as its parameter.

Matt Kruse, I used the same technique of saving a reference to the old
function, e.g. _html = html. I thought it was funny that we both
coincidentally used an underscore to backup the original function.
Thanks for the link, it provided a few ideas and insights.

DBJ, a strict mode sounds like a nice idea also. Although I never used
context, actually I don't know what it does. We'd have to begin
thinking about the requirements for a strict mode.

I've been working on a proof of concept. I believe it's better to have
a separate file that implements debugging, as not to bloat the jQuery
code and also to be adaptive to jQuery code updates (that's unless the
requirements for a jQuery function change significantly).

The example has a yellow warning bar at the top, not unlike IE, that
shows and hides itself. In firefox it finds the line numbers for the
problem code. The example page explains how to use it and the code
hopefully is commented well enough for understanding.

So here is the final proof of concept: 
http://pldilley.googlepages.com/jquery.debug.txt

Here is an example page that you can test it out with:
http://pldilley.googlepages.com/example.html

I noticed that "init" works in a different way to other functions,
indeed it's actually meant to be used as a class. "Init" seems to be
quite easy to break if you get something wrong while making this
debugging code. Please excuse any errors or problems, it's 3 am here.

Paul
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"jQuery Development" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/jquery-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to