]> source.dussan.org Git - jquery.git/commitdiff
Fix #11397. Shush Firefox warning by re-breaking #6932 for BB 4.7.
authorDave Methvin <dave.methvin@gmail.com>
Thu, 12 Jul 2012 18:54:43 +0000 (14:54 -0400)
committerDave Methvin <dave.methvin@gmail.com>
Thu, 12 Jul 2012 19:10:58 +0000 (15:10 -0400)
At this point BlackBerry 4.7 (and related ancient browsers) should be scarce (released circa 2008) so #6932 will be closed wontfix for this edge case.

src/attributes.js

index c3890c459b1c3215643488162a30053ac992691c..d8f6b04dda1c467b51108161287dc0ddf62f092e 100644 (file)
@@ -215,14 +215,6 @@ 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,