From c29660c5936b76787c4a864d8188b325bc81a81f Mon Sep 17 00:00:00 2001 From: Dave Methvin Date: Thu, 12 Jul 2012 15:28:58 -0400 Subject: [PATCH] Revert "Fix #11397. Shush Firefox warning by re-breaking #6932 for BB 4.7." This reverts commit e866893fd29b0328ebc282cf0ba716e6f87384c3. Failures in IE6 when this is removed, unfortunately. --- src/attributes.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/attributes.js b/src/attributes.js index d8f6b04dd..c3890c459 100644 --- a/src/attributes.js +++ b/src/attributes.js @@ -215,6 +215,14 @@ jQuery.fn.extend({ jQuery.extend({ valHooks: { + option: { + get: function( elem ) { + // attributes.value is undefined in Blackberry 4.7 but + // uses .value. See #6932 + var val = elem.attributes.value; + return !val || val.specified ? elem.value : elem.text; + } + }, select: { get: function( elem ) { var value, i, max, option, -- 2.39.5