Quantcast
Channel: JavaScriptMVC Forum
Viewing all articles
Browse latest Browse all 3491

Re : Templated Event Listener Handler Debugging Tools

$
0
0
FireQuery
One of the most useful parts of FireQuery is that it shows the data attached to every DOM node. As of jQuery 1.8, events are not accessible via .data(). Instead, you have to use $._data(element, 'events'); So while FireQuery is still useful, it does not show the events bound to an element for >= jQuery 1.8.0.

Visual Event & Chrome's Event Listener Tab seem to be a bit flaky. Templated events use event delegation and it looks as though both of these tools do not work quite right with those sorts of events. I will say that Chrome's tool was the best among the two, but I only used it for about 5 minutes, so it might actually work, but you'll have to play with it some more.

I've found the easiest way to debug is to use Chrome or FireFox (Firebug) breakpoints. If there is a simple case that you think should work, create a fiddle and post it on the forums. Otherwise, stepping through your code and inspecting the DOM at key points should be enough to figure out your problem.



Viewing all articles
Browse latest Browse all 3491

Trending Articles