diff options
author | David Petersen <public@petersendidit.com> | 2011-04-28 09:07:54 -0400 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2011-04-28 09:07:54 -0400 |
commit | a1473042b44e2fb1415ad4d996397d315ddb462c (patch) | |
tree | 8a9993c5d614f7c5fa02fbb7e6ea81437068f6ee /ui/jquery.ui.tabs.js | |
parent | 60d4e0ae42efd780e6147f981c55bdfeafdfaa54 (diff) | |
download | jquery-ui-a1473042b44e2fb1415ad4d996397d315ddb462c.tar.gz jquery-ui-a1473042b44e2fb1415ad4d996397d315ddb462c.zip |
Tabs: Make sure prototype.url is defined before trying to shim it
Diffstat (limited to 'ui/jquery.ui.tabs.js')
-rwxr-xr-x | ui/jquery.ui.tabs.js | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/ui/jquery.ui.tabs.js b/ui/jquery.ui.tabs.js index 82d3f186d..d4ee9984f 100755 --- a/ui/jquery.ui.tabs.js +++ b/ui/jquery.ui.tabs.js @@ -628,6 +628,14 @@ $.extend( $.ui.tabs, { // DEPRECATED if ( $.uiBackCompat !== false ) { + + // url method + (function( $, prototype ) { + prototype.url = function( index, url ) { + this.anchors.eq( index ).attr( "href", url ); + }; + }( jQuery, jQuery.ui.tabs.prototype ) ); + // ajaxOptions and cache options (function( $, prototype ) { $.extend( prototype.options, { @@ -638,7 +646,7 @@ if ( $.uiBackCompat !== false ) { var _create = prototype._create, _setOption = prototype._setOption, _destroy = prototype._destroy, - oldurl = prototype._url; + oldurl = prototype.url || $.noop; $.extend( prototype, { _create: function() { @@ -864,13 +872,6 @@ if ( $.uiBackCompat !== false ) { }; }( jQuery, jQuery.ui.tabs.prototype ) ); - // url method - (function( $, prototype ) { - prototype.url = function( index, url ) { - this.anchors.eq( index ).attr( "href", url ); - }; - }( jQuery, jQuery.ui.tabs.prototype ) ); - // panel ids (idPrefix option + title attribute) (function( $, prototype ) { $.extend( prototype.options, { |