Skip to content
This repository
Browse code

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

… arrays
  • Loading branch information...
commit b0e6839da5aeee63faf136e72b71bc834e0c8cad 1 parent e8f7479
Gabriel "_|Nix|_" Schulhof authored September 14, 2012

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  js/widgets/popup.js
2  js/widgets/popup.js
@@ -337,7 +337,7 @@ define( [ "jquery",
337 337
 			];
338 338
 
339 339
 			$.mobile.widget.prototype._setOption.apply( this, arguments );
340  
-			if ( exclusions.indexOf( key ) === -1 ) {
  340
+			if ( $.inArray( key, exclusions ) === -1 ) {
341 341
 				// Record the option change in the options and in the DOM data-* attributes
342 342
 				this.element.attr( "data-" + ( $.mobile.ns || "" ) + ( key.replace( /([A-Z])/, "-$1" ).toLowerCase() ), value );
343 343
 			}

0 notes on commit b0e6839

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