Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is jQuery 1.6.4 broken or did something change? [closed]

Tags:

jquery

It works in jQuery 1.6.3 but not jQuery 1.6.4

http://jsfiddle.net/xxwr4/

$("#a").click(function(){
    alert("click");              
});

<a id='a' href="#">test</a>
like image 976
Homer Avatar asked Oct 07 '11 15:10

Homer


1 Answers

This is jsFiddle's bad I believe, not jQuery.

I get an error when trying to attach to the window's load event. Something tells me they've pushed an un-tested update.

[11:01:16.970] window.addEvent is not a function @ http://fiddle.jshell.net/_display/:18

So, what's basically happening is your event isn't being attached because when it tries to bind your javascript code to execute after the DOM is ready it bombs. Switching to no wrap (body) in the fiddle allows it to work.

like image 141
Brad Christie Avatar answered Oct 18 '22 14:10

Brad Christie