Skip to content
This repository has been archived by the owner on Oct 8, 2021. It is now read-only.

Commit

Permalink
Panel: Added $.support.positionFixed check.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaspermdegroot committed Jan 14, 2013
1 parent 9c29254 commit 6748edf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/widgets/panel.js
Expand Up @@ -179,13 +179,13 @@ $.widget( "mobile.panel", $.mobile.widget, {
},

_unfixPanel: function() {
if ( !!this.options.positionFixed ) {
if ( !!this.options.positionFixed && $.support.positionFixed ) {
this.element.removeClass( this.options.classes.panelFixed );
}
},

_fixPanel: function() {
if ( !!this.options.positionFixed ) {
if ( !!this.options.positionFixed && $.support.positionFixed ) {
this.element.addClass( this.options.classes.panelFixed );
}
},
Expand Down

0 comments on commit 6748edf

Please sign in to comment.