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

Commit

Permalink
[popup] Use $.inArray, because IE does not seem to have .indexOf() on…
Browse files Browse the repository at this point in the history
… arrays
  • Loading branch information
Gabriel Schulhof committed Sep 15, 2012
1 parent e8f7479 commit b0e6839
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/widgets/popup.js
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ define( [ "jquery",
];

$.mobile.widget.prototype._setOption.apply( this, arguments );
if ( exclusions.indexOf( key ) === -1 ) {
if ( $.inArray( key, exclusions ) === -1 ) {
// Record the option change in the options and in the DOM data-* attributes
this.element.attr( "data-" + ( $.mobile.ns || "" ) + ( key.replace( /([A-Z])/, "-$1" ).toLowerCase() ), value );
}
Expand Down

0 comments on commit b0e6839

Please sign in to comment.