aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2011-03-23 09:16:19 -0400
committerScott González <scott.gonzalez@gmail.com>2011-03-23 09:16:19 -0400
commitc6e7e3fc28fdf6ce74bf9768fa4101cf3a163d1c (patch)
treed63b6b0067b9852d4d289435076f685f418080c7 /ui
parent79c0fb7ee93168c0ddbb5e80f3cc063a6e29b18c (diff)
downloadjquery-ui-c6e7e3fc28fdf6ce74bf9768fa4101cf3a163d1c.tar.gz
jquery-ui-c6e7e3fc28fdf6ce74bf9768fa4101cf3a163d1c.zip
Widget: Deprecated use of metadata plugin. Fixes #7191 - Widget: Deprecate use of metadata.
Diffstat (limited to 'ui')
-rw-r--r--ui/jquery.ui.widget.js11
1 files changed, 8 insertions, 3 deletions
diff --git a/ui/jquery.ui.widget.js b/ui/jquery.ui.widget.js
index 7c8567ced..09c680ec3 100644
--- a/ui/jquery.ui.widget.js
+++ b/ui/jquery.ui.widget.js
@@ -178,9 +178,7 @@ $.Widget.prototype = {
this._trigger( "create" );
this._init();
},
- _getCreateOptions: function() {
- return $.metadata && $.metadata.get( this.element[0] )[ this.widgetName ];
- },
+ _getCreateOptions: $.noop,
_create: $.noop,
_init: $.noop,
@@ -340,4 +338,11 @@ $.Widget.prototype = {
}
};
+// DEPRECATED
+if ( $.uiBackCompat !== false ) {
+ $.Widget.prototype._getCreateOptions = function() {
+ return $.metadata && $.metadata.get( this.element[0] )[ this.widgetName ];
+ }
+}
+
})( jQuery );