diff options
author | Scott González <scott.gonzalez@gmail.com> | 2011-05-17 15:46:41 -0400 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2011-05-17 15:46:41 -0400 |
commit | ad53b55f619a58c34d2d8df3a1943da60b8ab9a4 (patch) | |
tree | 3e7b0685a5fd5685a657c09b03d2fd677e2958cf /ui/jquery.ui.tabs.js | |
parent | 1bd139aaf9e4fc68f8f56ca5aeef5e9681ff177e (diff) | |
download | jquery-ui-ad53b55f619a58c34d2d8df3a1943da60b8ab9a4.tar.gz jquery-ui-ad53b55f619a58c34d2d8df3a1943da60b8ab9a4.zip |
Tabs: Fixed load event with back compat enabled.
Diffstat (limited to 'ui/jquery.ui.tabs.js')
-rw-r--r-- | ui/jquery.ui.tabs.js | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/ui/jquery.ui.tabs.js b/ui/jquery.ui.tabs.js index 84d623f62..b20cd9a26 100644 --- a/ui/jquery.ui.tabs.js +++ b/ui/jquery.ui.tabs.js @@ -1009,6 +1009,18 @@ if ( $.uiBackCompat !== false ) { } } }); + + // load event + $.widget( "ui.tabs", $.ui.tabs, { + _trigger: function( type, event, data ) { + var _data = $.extend( {}, data ); + if ( type === "load" ) { + _data.panel = _data.panel[ 0 ]; + _data.tab = _data.tab[ 0 ]; + } + return this._super( "_trigger", type, event, _data ); + } + }); } })( jQuery ); |