-
- if ( !jQuery.data( this[i], "olddisplay" ) && display !== "none" ) {
- jQuery.data( this[i], "olddisplay", display );
- }
+
+ if ( display !== "none" && !jQuery._data( this[i], "olddisplay" ) ) {
+ jQuery._data( this[i], "olddisplay", display );
+ }