Skip to content

Commit df4e49b

Browse files
committed
Merge pull request jquery-archive#1985 from rwldrn/jquery.mobile.page.js-4
Fixes regression: jquery.mobile.page.js - revert var decl
2 parents fb4b2ad + 658a420 commit df4e49b

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

js/jquery.mobile.page.js

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -160,17 +160,15 @@ $.widget( "mobile.page", $.mobile.widget, {
160160
_typeAttributeRegex: /\s+type=["']?\w+['"]?/,
161161

162162
_enhanceControls: function() {
163-
var o = this.options, self = this,
164-
$this = $( this ),
165-
type, optType,
163+
var o = this.options,
164+
self = this,
166165
allControls, nonNativeControls, textInputs;
167166

168167
// degrade inputs to avoid poorly implemented native functionality
169168
this.element.find( "input" ).not(this.keepNative).each(function() {
170-
var $this = $( this );
171-
172-
type = this.getAttribute( "type" );
173-
optType = o.degradeInputs[ type ] || "text";
169+
var $this = $( this ),
170+
type = this.getAttribute( "type" ),
171+
optType = o.degradeInputs[ type ] || "text";
174172

175173
if ( o.degradeInputs[ type ] ) {
176174
$this.replaceWith(

0 commit comments

Comments
 (0)