Skip to content
Permalink
Browse files

Accordion: Removed change and changestart events. Fixes #6841 - Accor…

…dion: Remove changestart event. Fixes #6843 - Accordion: Remove change event.
  • Loading branch information...
scottgonzalez committed Oct 25, 2012
1 parent 8d35c03 commit bc44e61dd9e6797bb23bc3038d43436a8ba052c3
@@ -10,7 +10,6 @@ var versions = {
},
tests = {
"Accordion": "accordion/accordion.html",
"Accordion_deprecated": "accordion/accordion_deprecated.html",
"Autocomplete": "autocomplete/autocomplete.html",
"Button": "button/button.html",
"Core": "core/core.html",
@@ -5,9 +5,6 @@
<title>jQuery UI Accordion Test Suite</title>

<script src="../../jquery.js"></script>
<script>
$.uiBackCompat = false;
</script>
<link rel="stylesheet" href="../../../external/qunit.css">
<script src="../../../external/qunit.js"></script>
<script src="../../jquery.simulate.js"></script>

This file was deleted.

Oops, something went wrong.

This file was deleted.

Oops, something went wrong.

This file was deleted.

Oops, something went wrong.
@@ -17,7 +17,6 @@
var params = [],
suites = [
"accordion/accordion.html",
"accordion/accordion_deprecated.html",
"autocomplete/autocomplete.html",
"button/button.html",
"core/core.html",
@@ -17,7 +17,6 @@
var params = [],
suites = [
"accordion/accordion.html",
"accordion/accordion_deprecated.html",
"autocomplete/autocomplete.html",
"button/button.html",
"core/core.html",
@@ -7,7 +7,6 @@ var versions = [
"git"
],
additionalTests = {
accordion: [ "accordion_deprecated.html" ],
position: [ "position_deprecated.html" ]
};

@@ -540,42 +540,4 @@ $.widget( "ui.accordion", {
}
});



// DEPRECATED
if ( $.uiBackCompat !== false ) {
// change events
(function( $, prototype ) {
$.extend( prototype.options, {
change: null,
changestart: null
});

var _trigger = prototype._trigger;
prototype._trigger = function( type, event, data ) {
var ret = _trigger.apply( this, arguments );
if ( !ret ) {
return false;
}

if ( type === "beforeActivate" ) {
ret = _trigger.call( this, "changestart", event, {
oldHeader: data.oldHeader,
oldContent: data.oldPanel,
newHeader: data.newHeader,
newContent: data.newPanel
});
} else if ( type === "activate" ) {
ret = _trigger.call( this, "change", event, {
oldHeader: data.oldHeader,
oldContent: data.oldPanel,
newHeader: data.newHeader,
newContent: data.newPanel
});
}
return ret;
};
}( jQuery, jQuery.ui.accordion.prototype ) );
}

})( jQuery );

0 comments on commit bc44e61

Please sign in to comment.
You can’t perform that action at this time.