aboutsummaryrefslogtreecommitdiffstats
path: root/ui/jquery.ui.widget.js
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2011-06-08 17:02:57 -0400
committerScott González <scott.gonzalez@gmail.com>2011-06-08 17:02:57 -0400
commitda84672db8ad1f3909e645a665e9a9c6c0de0ded (patch)
treebf6261b0059b0bd716ec6df9196c01c38c02216b /ui/jquery.ui.widget.js
parent7cd3d0a99ec4c92671aa637d322a41300786d879 (diff)
downloadjquery-ui-da84672db8ad1f3909e645a665e9a9c6c0de0ded.tar.gz
jquery-ui-da84672db8ad1f3909e645a665e9a9c6c0de0ded.zip
.attr() -> .prop()
Diffstat (limited to 'ui/jquery.ui.widget.js')
-rw-r--r--ui/jquery.ui.widget.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/jquery.ui.widget.js b/ui/jquery.ui.widget.js
index 00bc07c4f..8079f0357 100644
--- a/ui/jquery.ui.widget.js
+++ b/ui/jquery.ui.widget.js
@@ -211,7 +211,7 @@ $.Widget.prototype = {
.removeData( this.widgetName );
this.widget()
.unbind( "." + this.widgetName )
- .removeAttr( "aria-disabled" )
+ .removeProp( "aria-disabled" )
.removeClass(
this.widgetBaseClass + "-disabled " +
"ui-state-disabled" );
@@ -276,7 +276,7 @@ $.Widget.prototype = {
if ( key === "disabled" ) {
this.widget()
.toggleClass( this.widgetBaseClass + "-disabled ui-state-disabled", !!value )
- .attr( "aria-disabled", value );
+ .prop( "aria-disabled", value );
this.hoverable.removeClass( "ui-state-hover" );
this.focusable.removeClass( "ui-state-focus" );
}