Paulsonps / dropdown-check-list

Automatically exported from code.google.com/p/dropdown-check-list
0 stars 0 forks source link

Destroy method not working -- SOLVED #131

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Hi Adrian,

Nice plugin! Thanks a lot for it. I found a small bug in the destroy method, so 
I'm posting it here in case someone needs this workaround. AFAIK, it only 
happens with the 1.1 version.

** What steps will reproduce the problem?
"Refresh" the list of options using the "destroy" method workaround

** What is the expected output? What do you see instead?
Expected to see the dropdown being destroyed.
Saw an error instead (in firebug I got a "Widget is not defined")

** What is your environment?
-- DropDownCheckList version: 1.1
-- jQuery version: 1.3.2
-- jQuery UI version: 1.7.2
-- Browser and version: IE6, Firefox 3.5

** Please provide any additional information below/Please attach sample
html

HERE IS HOW TO SOLVE IT: line 751 and 752 says:
        destroy: function() {
            $.Widget.prototype.destroy.apply(this, arguments);
            ....

IT SHOULD SAY 
        destroy: function() {
            $.widget.prototype.destroy.apply(this, arguments);
            ....
(note the "W" in "Widget")

Hope it helps.

Original issue reported on code.google.com by zerocode...@gmail.com on 5 Oct 2010 at 5:22

GoogleCodeExporter commented 8 years ago
Wrong version of jQuery was used with v1.1 of DDCL

Original comment by womohun...@ittrium.com on 6 Oct 2010 at 1:27

GoogleCodeExporter commented 8 years ago
Thanks this works....

Original comment by billycri...@gmail.com on 4 Jun 2013 at 3:41