aboutsummaryrefslogtreecommitdiffstats
path: root/ui/widgets
diff options
context:
space:
mode:
authorMichał Gołębiowski-Owczarek <m.goleb@gmail.com>2024-05-07 00:03:19 +0200
committerMichał Gołębiowski-Owczarek <m.goleb@gmail.com>2024-05-15 00:38:40 +0200
commitf90eab84b5e9a65ce62f18106e3db0ee316913f6 (patch)
treeccc850ea9ed8052a7af352c38b0d310779f08bba /ui/widgets
parentbb49bd794bc8ea4238162725b518fb46234f3cf9 (diff)
downloadjquery-ui-f90eab84b5e9a65ce62f18106e3db0ee316913f6.tar.gz
jquery-ui-f90eab84b5e9a65ce62f18106e3db0ee316913f6.zip
Sortable: Rename `storedStylesheet` to `_storedStylesheet`
This follows the naming strategy for other internal properties. Ref gh-2249
Diffstat (limited to 'ui/widgets')
-rw-r--r--ui/widgets/sortable.js7
1 files changed, 4 insertions, 3 deletions
diff --git a/ui/widgets/sortable.js b/ui/widgets/sortable.js
index 32333b6f5..55b570bb4 100644
--- a/ui/widgets/sortable.js
+++ b/ui/widgets/sortable.js
@@ -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 );
}
@@ -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 );