Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

[popup] Use $.inArray, because IE does not seem to have .indexOf() on…

… arrays
  • Loading branch information...
commit b0e6839da5aeee63faf136e72b71bc834e0c8cad 1 parent e8f7479
@gabrielschulhof gabrielschulhof authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  js/widgets/popup.js
View
2  js/widgets/popup.js
@@ -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 );
}

0 comments on commit b0e6839

Please sign in to comment.
Something went wrong with that request. Please try again.