mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Sortable: Rename storedStylesheet
to _storedStylesheet
This follows the naming strategy for other internal properties. Ref gh-2249
This commit is contained in:
parent
bb49bd794b
commit
f90eab84b5
@ -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 );
|
||||
|
Loading…
Reference in New Issue
Block a user