For whatever reason, I am using the dropdown and the event here... item = $(event.target); is undefined. It appears as though the item variable is unused anyways, so perhaps it should just be removed?
_setHeader: function(text) {
var headerText = this.header.find('.ui-btn-text'),
headerStatusText = headerText.find('.ui-collapsible-heading-status'),
item = $(event.target);
//Check if the content has been enhanced yet
if(headerText.length === 0){
this.header.text(text);
} else {
headerText.text(text).append(headerStatusText);
}
},
To clarify, no event seems to be passed in and is erring as undefined. Additionally item doesn't seem to be used. Talked with Jason Scott at the jQuery Developer Summit and we are going to remove that line.
For whatever reason, I am using the dropdown and the event here...
item = $(event.target);
is undefined. It appears as though the item variable is unused anyways, so perhaps it should just be removed?