]> source.dussan.org Git - jquery-ui.git/commitdiff
Widget: Fixed reference to element in _getCreateOptions().
authorScott González <scott.gonzalez@gmail.com>
Wed, 20 Oct 2010 03:19:53 +0000 (23:19 -0400)
committerScott González <scott.gonzalez@gmail.com>
Wed, 20 Oct 2010 03:19:53 +0000 (23:19 -0400)
ui/jquery.ui.widget.js

index d9d75f9e63e2a19c00e9606c7eb2ebb034f79a36..95923edddd44a9b8aa69b3556d1d191c6d78387e 100644 (file)
@@ -158,7 +158,7 @@ $.Widget.prototype = {
                this._init();
        },
        _getCreateOptions: function() {
-               return $.metadata && $.metadata.get( element )[ this.widgetName ];
+               return $.metadata && $.metadata.get( this.element[0] )[ this.widgetName ];
        },
        _create: function() {},
        _init: function() {},