Skip to content

Commit

Permalink
Sortable: Rename storedStylesheet to _storedStylesheet
Browse files Browse the repository at this point in the history
This follows the naming strategy for other internal properties.

Ref gh-2249
  • Loading branch information
mgol committed May 14, 2024
1 parent bb49bd7 commit f90eab8
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions ui/widgets/sortable.js
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ return $.widget( "ui.sortable", $.ui.mouse, {
if ( o.cursor && o.cursor !== "auto" ) { // cursor option
body = this.document.find( "body" );

this.storedStylesheet =
this._storedStylesheet =
$( "<style>*{ cursor: " + o.cursor + " !important; }</style>" ).appendTo( body );
}

Expand Down Expand Up @@ -1542,8 +1542,9 @@ return $.widget( "ui.sortable", $.ui.mouse, {
}

//Do what was originally in plugins
if ( this.storedStylesheet ) {
this.storedStylesheet.remove();
if ( this._storedStylesheet ) {
this._storedStylesheet.remove();
this._storedStylesheet = null;
}
if ( this._storedOpacity ) {
this.helper.css( "opacity", this._storedOpacity );
Expand Down

0 comments on commit f90eab8

Please sign in to comment.