AmitDhanawat / jquery-multi-open-accordion

Automatically exported from code.google.com/p/jquery-multi-open-accordion
0 stars 0 forks source link

Destroy is not properly implemented (jQ UI 1.8) #10

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. call multiOpenAccordion() on a selector; _create is fired
2. call multiOpenAccordion('destroy')
3. call multiOpenAccordion() on same selector; _create is not fired

What is the expected output? What do you see instead?

Expected accordion to instantiate again.

Instead, the accordian is not styled and not functional.

The destroy method in this library should invoke jQ UI's base destroy method:

return $.Widget.prototype.destroy.call( this );

(see also http://wiki.jqueryui.com/w/page/12138135/Widget%20factory)

Original issue reported on code.google.com by bry...@gmail.com on 15 Jan 2012 at 9:51

GoogleCodeExporter commented 9 years ago
It's a couple of years later, but I reproduced the error and the problem is 
that the destroy method of the WidgetFactory is not properly suscribed. You 
have to change the destroy for _destroy on the definition of 
multi-open-accordion.

Original comment by calcohol...@gmail.com on 1 Apr 2014 at 4:06

Attachments: