h3 / jquery-utils

Automatically exported from code.google.com/p/jquery-utils
MIT License
0 stars 0 forks source link

delayedObserver #30

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
usering delayed observer gives his error 
"el.data("callback").apply is not a function"

Original issue reported on code.google.com by dco...@gmail.com on 17 Jun 2009 at 5:32

GoogleCodeExporter commented 9 years ago
Sorry I don't have enough informations to replicate this bug .. seems to work 
fine here.

Original comment by hainea...@gmail.com on 4 Aug 2009 at 1:11

GoogleCodeExporter commented 9 years ago

Original comment by hainea...@gmail.com on 4 Aug 2009 at 1:12

GoogleCodeExporter commented 9 years ago
Sorry to revive an old issue but I had this same issue and thought I would post 
how I reproduced it.  It turns out I was passing the parameters in the wrong 
order, delay first, then the callback method.

My call looked something like this: $('myselector').delayedObserver(1, 
function() { /* do something */ });

Putting the parameters in the correct order fixed the issue.

Original comment by specman...@gmail.com on 31 Jan 2012 at 6:27