From 658a420c3b201b983898248bc8d3b2ae88d7133a Mon Sep 17 00:00:00 2001 From: Rick Waldron Date: Wed, 29 Jun 2011 13:24:55 -0400 Subject: [PATCH] Fixes regression: jquery.mobile.page.js - revert var decl --- js/jquery.mobile.page.js | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/js/jquery.mobile.page.js b/js/jquery.mobile.page.js index 9d170097..e0398bff 100644 --- a/js/jquery.mobile.page.js +++ b/js/jquery.mobile.page.js @@ -160,17 +160,15 @@ $.widget( "mobile.page", $.mobile.widget, { _typeAttributeRegex: /\s+type=["']?\w+['"]?/, _enhanceControls: function() { - var o = this.options, self = this, - $this = $( this ), - type, optType, + var o = this.options, + self = this, allControls, nonNativeControls, textInputs; // degrade inputs to avoid poorly implemented native functionality this.element.find( "input" ).not(this.keepNative).each(function() { - var $this = $( this ); - - type = this.getAttribute( "type" ); - optType = o.degradeInputs[ type ] || "text"; + var $this = $( this ), + type = this.getAttribute( "type" ), + optType = o.degradeInputs[ type ] || "text"; if ( o.degradeInputs[ type ] ) { $this.replaceWith(