]> source.dussan.org Git - jquery-ui.git/commitdiff
Draggable: Remove redundant handling of disabled class on create
authorJörn Zaefferer <joern.zaefferer@gmail.com>
Mon, 21 Sep 2015 10:42:56 +0000 (12:42 +0200)
committerScott González <scott.gonzalez@gmail.com>
Fri, 25 Sep 2015 17:47:02 +0000 (13:47 -0400)
_setOptionDisabled in $.Widget is now handling that.

Ref #9151
Ref gh-1599

ui/widgets/draggable.js

index fc340626ea6fc36135b6317b7094bade261b1aa5..f61c38ce0a3a776c54b3d9a8d95960861eff7447 100644 (file)
@@ -78,9 +78,6 @@ $.widget( "ui.draggable", $.ui.mouse, {
                if ( this.options.addClasses ) {
                        this._addClass( "ui-draggable" );
                }
-               if ( this.options.disabled ) {
-                       this._addClass( "ui-draggable-disabled" );
-               }
                this._setHandleClassName();
 
                this._mouseInit();