mirror of
https://github.com/Hopiu/jquery-mobile.git
synced 2026-03-16 22:10:25 +00:00
Merge pull request #1985 from rwldrn/jquery.mobile.page.js-4
Fixes regression: jquery.mobile.page.js - revert var decl
This commit is contained in:
commit
df4e49b70c
1 changed files with 5 additions and 7 deletions
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Reference in a new issue