Skip to content

Commit a770892

Browse files
authored
Add files via upload
1 parent f69df14 commit a770892

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

test/unit/manipulation.js

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -3104,23 +3104,23 @@ QUnit.test( "should handle custom 'removeondestroy' event correctly", function(
31043104

31053105
assert.expect( 4 );
31063106

3107-
jQuery( `
3108-
<div id="container">
3109-
<div class="guarded removeself" data-elt="one">
3110-
Guarded 1
3111-
</div>
3112-
<div class="guarded" data-elt="two">
3113-
Guarded 2
3114-
</div>
3115-
<div class="guarded" data-elt="three">
3116-
Guarded 3
3117-
</div>
3118-
</div>
3119-
` ).appendTo( "#qunit-fixture" );
3107+
jQuery(
3108+
"<div id='container'>" +
3109+
"<div class='guarded removeself' data-elt='one'>" +
3110+
"Guarded 1" +
3111+
"</div>" +
3112+
"<div class='guarded' data-elt='two'>" +
3113+
"Guarded 2" +
3114+
"</div>" +
3115+
"<div class='guarded' data-elt='three'>" +
3116+
"Guarded 3" +
3117+
"</div>" +
3118+
"</div>"
3119+
).appendTo( "#qunit-fixture" );
31203120

31213121
// Define the custom event handler
31223122
jQuery.event.special.removeondestroy = {
3123-
remove: function( _handleObj ) {
3123+
remove: function( ) {
31243124
var $t = jQuery( this );
31253125
assert.step( $t.data( "elt" ) );
31263126
if ( $t.is( ".removeself" ) ) {

0 commit comments

Comments
 (0)