aboutsummaryrefslogtreecommitdiffstats
path: root/ui/jquery.ui.accordion.js
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2011-11-16 07:59:21 -0500
committerScott González <scott.gonzalez@gmail.com>2011-11-16 08:00:03 -0500
commite5464f8f19f2026487bdffb465c6e77498449032 (patch)
treee6716e1e69633176903040f69eaea2c303966445 /ui/jquery.ui.accordion.js
parentf0f54e38d8eab613d7ea25d698b81126e5263d83 (diff)
downloadjquery-ui-e5464f8f19f2026487bdffb465c6e77498449032.tar.gz
jquery-ui-e5464f8f19f2026487bdffb465c6e77498449032.zip
Accordion: Fixed back-compat for icons.headerSelected when icons option is null.
Diffstat (limited to 'ui/jquery.ui.accordion.js')
-rw-r--r--ui/jquery.ui.accordion.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/ui/jquery.ui.accordion.js b/ui/jquery.ui.accordion.js
index 6eb496a43..8289ee81b 100644
--- a/ui/jquery.ui.accordion.js
+++ b/ui/jquery.ui.accordion.js
@@ -628,8 +628,10 @@ if ( $.uiBackCompat !== false ) {
var _createIcons = prototype._createIcons;
prototype._createIcons = function() {
- this.options.icons.activeHeader = this.options.icons.activeHeader ||
- this.options.icons.headerSelected;
+ if ( this.options.icons ) {
+ this.options.icons.activeHeader = this.options.icons.activeHeader ||
+ this.options.icons.headerSelected;
+ }
_createIcons.call( this );
};
}( jQuery, jQuery.ui.accordion.prototype ) );