Skip to content

Commit f90eab8

Browse files
committed
Sortable: Rename storedStylesheet to _storedStylesheet
This follows the naming strategy for other internal properties. Ref gh-2249
1 parent bb49bd7 commit f90eab8

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

ui/widgets/sortable.js

+4-3
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ return $.widget( "ui.sortable", $.ui.mouse, {
275275
if ( o.cursor && o.cursor !== "auto" ) { // cursor option
276276
body = this.document.find( "body" );
277277

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

@@ -1542,8 +1542,9 @@ return $.widget( "ui.sortable", $.ui.mouse, {
15421542
}
15431543

15441544
//Do what was originally in plugins
1545-
if ( this.storedStylesheet ) {
1546-
this.storedStylesheet.remove();
1545+
if ( this._storedStylesheet ) {
1546+
this._storedStylesheet.remove();
1547+
this._storedStylesheet = null;
15471548
}
15481549
if ( this._storedOpacity ) {
15491550
this.helper.css( "opacity", this._storedOpacity );

0 commit comments

Comments
 (0)