h3 / jquery-utils

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

FF3 - delayedObserver, changing options.event does not make it to event handler #28

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Version 0.8 of jQuery-utils

I wanted to use delayedObserver to fire on a select input type.

<select id="states" name="states">
<option>Maryland</option>
<option>Michigan</option>
<option>Mississippi</option>
</select>

I setup a delayedObserver on #states

$("#states").delayedObserver(function(){window.alert("Changed select to: " + 
this.val());},0.5,{event: 'change'}};

This does not change the options.event value in the delayedObserver plugin, and 
always defaults 
to 'keyup'.

I solved this by changing the variable name "options" to "observer_options" on 
lines 1903 and 
1906 of the master jquery.utils.js file.

Original issue reported on code.google.com by mjkono...@gmail.com on 5 Jun 2009 at 9:18

GoogleCodeExporter commented 9 years ago
It was indeed a simple typo, it's now fixed in the trunk.

Thanks a lot for taking the time to find the origin of the bug! 

Original comment by hainea...@gmail.com on 6 Jun 2009 at 3:17