dhamaso / ufd

Automatically exported from code.google.com/p/ufd
GNU General Public License v2.0
0 stars 0 forks source link

error on destroy if the select element doesn't have an id #43

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Apply ufd to a select element which only has a name attribute
2. Call ufd('destroy')

What is the expected output? What do you see instead?
ufd should delete the custom dropdown and show the native dropdown. Instead 
both the native and custom dropdowns are shown and the destroy method fails 
with this error : "Uncaught TypeError: Cannot call method 'attr' of undefined" 
on line 1021 of jquery.ui.ufd.js. 
If I give an id to the select element, everything works as expected. 

What version of the product are you using? On what operating system?
ufd 0.6 with jQuery 1.5.1 and jQueryUI 1.8.10, on Windows XP SP3. Only tested 
on Chrome 10.0.648.151.

Please provide any additional information below.

Original issue reported on code.google.com by roma...@gmail.com on 18 Mar 2011 at 3:59

GoogleCodeExporter commented 9 years ago
sorry, nasty bug - fixed in trunk

http://code.google.com/p/ufd/source/detail?r=265

Original comment by thetoolman on 5 Oct 2011 at 10:57