Skip to content
This repository
Browse code

[popup] Restrict the application of the exclusions to the recording o…

…f the new option value in the data-* attributes. Do still chain up to mobile.widget with every option.
  • Loading branch information...
commit 7ea42af72c5323d80287fb34409744e006354c14 1 parent d54ac70
Gabriel "_|Nix|_" Schulhof authored September 10, 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
@@ -336,9 +336,9 @@ define( [ "jquery",
336 336
 				"container"
337 337
 			];
338 338
 
  339
+			$.mobile.widget.prototype._setOption.apply( this, arguments );
339 340
 			if ( exclusions.indexOf( key ) === -1 ) {
340 341
 				// Record the option change in the options and in the DOM data-* attributes
341  
-				$.mobile.widget.prototype._setOption.apply( this, arguments );
342 342
 				this.element.attr( "data-" + ( $.mobile.ns || "" ) + ( key.replace( /([A-Z])/, "-$1" ).toLowerCase() ), value );
343 343
 			}
344 344
 		},

0 notes on commit 7ea42af

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