aboutsummaryrefslogtreecommitdiffstats
path: root/src/attributes.js
diff options
context:
space:
mode:
authorMichał Gołębiowski <m.goleb@gmail.com>2013-03-20 01:45:19 +0100
committerDave Methvin <dave.methvin@gmail.com>2013-04-04 12:55:03 -0400
commit7049877530882c2f8ee09f71f7fc736ca9570736 (patch)
tree0fa73efdca54f7445880979f4fb035ab891cc5eb /src/attributes.js
parentba16ba2efcb0a7703d1332044de87bf12700a66e (diff)
downloadjquery-7049877530882c2f8ee09f71f7fc736ca9570736.tar.gz
jquery-7049877530882c2f8ee09f71f7fc736ca9570736.zip
Correct oldIE-related comments, revert some workarounds. Close gh-1207.
Diffstat (limited to 'src/attributes.js')
-rw-r--r--src/attributes.js9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/attributes.js b/src/attributes.js
index 665e6ba9d..f116f8396 100644
--- a/src/attributes.js
+++ b/src/attributes.js
@@ -23,11 +23,8 @@ jQuery.fn.extend({
removeProp: function( name ) {
name = jQuery.propFix[ name ] || name;
return this.each(function() {
- // try/catch handles cases where IE balks (such as removing a property on window)
- try {
- this[ name ] = undefined;
- delete this[ name ];
- } catch( e ) {}
+ this[ name ] = undefined;
+ delete this[ name ];
});
},
@@ -249,7 +246,7 @@ jQuery.extend({
for ( ; i < max; i++ ) {
option = options[ i ];
- // oldIE doesn't update selected after form reset (#2551)
+ // IE6-9 doesn't update selected after form reset (#2551)
if ( ( option.selected || i === index ) &&
// Don't return options that are disabled or in a disabled optgroup
( jQuery.support.optDisabled ? !option.disabled : option.getAttribute("disabled") === null ) &&