Permalink
Browse files

Textinput: removed option clearSearchButtonText (deprecated in 1.3).

  • Loading branch information...
jaspermdegroot committed May 6, 2013
1 parent 83c746e commit 6ec5491558c01b16dffdd805ff6d4d2e2d30857b
Showing with 1 addition and 2 deletions.
  1. +1 −2 js/widgets/forms/textinput.js
@@ -16,7 +16,6 @@ $.widget( "mobile.textinput", $.mobile.widget, {
// This option defaults to true on iOS devices.
preventFocusZoom: /iPhone|iPad|iPod/.test( navigator.platform ) && navigator.userAgent.indexOf( "AppleWebKit" ) > -1,
clearBtn: false,
clearSearchButtonText: null, //deprecating for 1.3...
clearBtnText: "clear text",
disabled: false
},
@@ -32,7 +31,7 @@ $.widget( "mobile.textinput", $.mobile.widget, {
isSearch = input.is( "[type='search'], :jqmData(type='search')" ),
focusedEl,
clearbtn,
clearBtnText = o.clearSearchButtonText || o.clearBtnText,
clearBtnText = o.clearBtnText,
clearBtnBlacklist = input.is( "textarea, :jqmData(type='range')" ),
inputNeedsClearBtn = !!o.clearBtn && !clearBtnBlacklist,
inputNeedsWrap = input.is( "input" ) && !input.is( ":jqmData(type='range')" ),

0 comments on commit 6ec5491

Please sign in to comment.