jQuery listen. Issue with class selectors, only for Opera 10.53

Forums » General Opera topics » User JavaScript

You need to be logged in to post in the forums. If you do not have an account, please sign up first.

Go to last post

3. June 2010, 08:59:59

Distrahera

Posts: 2

jQuery listen. Issue with class selectors, only for Opera 10.53

Hi good opera forum,

First of all, this is a problem I have posted at the jQuery 'listen' developer Ariel Fleslers blog, without response so far.

Works splendidly..
$.listen('click', '#myId', function(){
   opera.postError('I can see this')
})


Doesn't work at all..
$.listen('click', 'a.myClass', function(){
   opera.postError('I can't see this')
})


---

So, obviously there is something dodgy about this. The issue occurs only in 10.53 (to my knowledge). Anyone recognizes this?

http://flesler.blogspot.com/2008/02/jquerylisten-10-released.html

3. June 2010, 09:44:28

nowotny

Posts: 1296

Hmm... this plugin has been released over 2 years ago before the $.live method was available which I think is mainly why this plugin was written... I don't really see any advantage of it over the $.live method which I think you should be using instead...

Anyway... this has nothing to do with UserJS unless you're planing to use it in one... wink

BTW: next time you're gonna ask for help with some obscure plugin at least you could provide some links...

3. June 2010, 09:53:54

Distrahera

Posts: 2

Originally posted by nowotny:

this has nothing to do with UserJS unless you're planing to use it in one


That was the plan =)

But yeah all right, its an old plugin. Seems like such an odd behavior though.

3. June 2010, 10:09:58

nowotny

Posts: 1296

Originally posted by Distrahera:

But yeah all right, its an old plugin. Seems like such an odd behavior though.


Not really... if you open up the sourcecode you'll see this parameter is handled by a regexp... may be some error there, I don't know, but it looks like some bad way for doing that... smile

Forums » General Opera topics » User JavaScript