aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorJörn Zaefferer <joern.zaefferer@gmail.com>2012-03-01 14:36:17 +0100
committerJörn Zaefferer <joern.zaefferer@gmail.com>2012-03-01 14:36:17 +0100
commit1b80154832611f8f440f4559c429fbdc4e773177 (patch)
treeeba32c091fa449ee77a9e703729b5591b05c1d70 /ui
parent5fda4f6828ad523bd0692b76f903010a458fcac4 (diff)
downloadjquery-ui-1b80154832611f8f440f4559c429fbdc4e773177.tar.gz
jquery-ui-1b80154832611f8f440f4559c429fbdc4e773177.zip
Widget: Rename widgetBaseClass to widgetFullName. Deprecates widgetBaseClass, to be removed later. Fixes #8154
Diffstat (limited to 'ui')
-rw-r--r--ui/jquery.ui.widget.js12
1 files changed, 7 insertions, 5 deletions
diff --git a/ui/jquery.ui.widget.js b/ui/jquery.ui.widget.js
index d11f993c6..d06b2654f 100644
--- a/ui/jquery.ui.widget.js
+++ b/ui/jquery.ui.widget.js
@@ -105,7 +105,9 @@ $.widget = function( name, base, prototype ) {
constructor: constructor,
namespace: namespace,
widgetName: name,
- widgetBaseClass: fullName
+ // TODO remove widgetBaseClass, see #8155
+ widgetBaseClass: fullName,
+ widgetFullName: fullName
});
// If this widget is being redefined then we need to find all widgets that
@@ -148,7 +150,7 @@ $.widget.extend = function( target ) {
};
$.widget.bridge = function( name, object ) {
- var fullName = object.prototype.widgetBaseClass;
+ var fullName = object.prototype.widgetFullName;
$.fn[ name ] = function( options ) {
var isMethodCall = typeof options === "string",
args = slice.call( arguments, 1 ),
@@ -225,7 +227,7 @@ $.Widget.prototype = {
// 1.9 BC for #7810
// TODO remove dual storage
$.data( element, this.widgetName, this );
- $.data( element, this.widgetBaseClass, this );
+ $.data( element, this.widgetFullName, this );
this._bind({ remove: "destroy" });
this.document = $( element.style ?
// element within the document
@@ -255,7 +257,7 @@ $.Widget.prototype = {
.unbind( "." + this.widgetName )
.removeAttr( "aria-disabled" )
.removeClass(
- this.widgetBaseClass + "-disabled " +
+ this.widgetFullName + "-disabled " +
"ui-state-disabled" );
// clean up events and states
@@ -322,7 +324,7 @@ $.Widget.prototype = {
if ( key === "disabled" ) {
this.widget()
- .toggleClass( this.widgetBaseClass + "-disabled ui-state-disabled", !!value )
+ .toggleClass( this.widgetFullName + "-disabled ui-state-disabled", !!value )
.attr( "aria-disabled", value );
this.hoverable.removeClass( "ui-state-hover" );
this.focusable.removeClass( "ui-state-focus" );