vendor/assets/javascripts/bootstrap/tabs.js in css-bootstrap-rails-0.0.5 vs vendor/assets/javascripts/bootstrap/tabs.js in css-bootstrap-rails-0.0.6

- old
+ new

@@ -1,7 +1,7 @@ /* ======================================================== - * bootstrap-tabs.js v1.3.0 + * bootstrap-tabs.js v1.4.0 * http://twitter.github.com/bootstrap/javascript.html#tabs * ======================================================== * Copyright 2011 Twitter, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); @@ -18,10 +18,12 @@ * ======================================================== */ !function( $ ){ + "use strict" + function activate ( element, container ) { container .find('> .active') .removeClass('active') .find('> .dropdown-menu > .active') @@ -37,9 +39,10 @@ function tab( e ) { var $this = $(this) , $ul = $this.closest('ul:not(.dropdown-menu)') , href = $this.attr('href') , previous + , $href if ( /^#\w+/.test(href) ) { e.preventDefault() if ( $this.parent('li').hasClass('active') ) {