diff options
| author | Jacob Thornton <[email protected]> | 2011-10-19 21:56:06 -0700 |
|---|---|---|
| committer | Jacob Thornton <[email protected]> | 2011-10-19 21:56:06 -0700 |
| commit | 8545fe97877dc275df40ab98d408f21ce9a362cf (patch) | |
| tree | 1748be70e5c1c3b96cb2d836a909350fd7855772 /js/bootstrap-tabs.js | |
| parent | c9669be1ec2862b88ffdb296191e82fed79f56a4 (diff) | |
| download | bootstrap-8545fe97877dc275df40ab98d408f21ce9a362cf.tar.xz bootstrap-8545fe97877dc275df40ab98d408f21ce9a362cf.zip | |
greatly simply js plugins - remove js api where reasonable
Diffstat (limited to 'js/bootstrap-tabs.js')
| -rw-r--r-- | js/bootstrap-tabs.js | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/js/bootstrap-tabs.js b/js/bootstrap-tabs.js index b94adfc25..6ee80429c 100644 --- a/js/bootstrap-tabs.js +++ b/js/bootstrap-tabs.js @@ -55,14 +55,8 @@ /* TABS/PILLS PLUGIN DEFINITION * ============================ */ - $.fn.tabs = $.fn.pills = function ( selector ) { - return this.each(function () { - $(this).delegate(selector || '.tabs li > a, .pills > li > a', 'click', tab) - }) - } - - $(document).ready(function () { - $('body').tabs('ul[data-tabs] li > a, ul[data-pills] > li > a') + $(function () { + $('body').delegate('ul[data-tabs] > li > a, ul[data-pills] > li > a', 'click', tab) }) }( window.jQuery || window.ender );
\ No newline at end of file |
