File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -51,6 +51,22 @@ $.widget("ui.panel", {
51
51
. hide ( ) ;
52
52
} ,
53
53
54
+ destroy : function ( ) {
55
+ $ . Widget . prototype . destroy . apply ( this , arguments ) ;
56
+ this . element
57
+ . removeClass ( "ui-panel ui-widget ui-helper-reset" )
58
+ . removeAttr ( "role" ) ;
59
+
60
+ this . headers
61
+ . unbind ( ".panel" )
62
+ . removeClass ( "ui-panel-header ui-helper-reset ui-state-default ui-corner-all ui-state-active ui-corner-top" )
63
+ . removeAttr ( "role" ) . removeAttr ( "aria-expanded" ) . removeAttr ( "tabindex" ) ;
64
+
65
+ this . headers . find ( "a" ) . removeAttr ( "tabindex" ) ;
66
+ this . _destroyIcons ( ) ;
67
+ var contents = this . headers . next ( ) . css ( "display" , "" ) . removeAttr ( "role" ) . removeClass ( "ui-helper-reset ui-widget-content ui-corner-bottom ui-panel-content ui-panel-content-active" ) ;
68
+ } ,
69
+
54
70
_setOption : function ( key , value ) {
55
71
$ . Widget . prototype . _setOption . apply ( this , arguments ) ;
56
72
You can’t perform that action at this time.
0 commit comments