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

- old
+ new

@@ -1,7 +1,7 @@ /* ========================================================== - * bootstrap-alerts.js v1.3.0 + * bootstrap-alerts.js v1.4.0 * http://twitter.github.com/bootstrap/javascript.html#alerts * ========================================================== * Copyright 2011 Twitter, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); @@ -18,10 +18,12 @@ * ========================================================== */ !function( $ ){ + "use strict" + /* CSS TRANSITION SUPPORT (https://gist.github.com/373874) * ======================================================= */ var transitionEnd @@ -36,14 +38,14 @@ // set CSS transition event type if ( $.support.transition ) { transitionEnd = "TransitionEnd" if ( $.browser.webkit ) { - transitionEnd = "webkitTransitionEnd" + transitionEnd = "webkitTransitionEnd" } else if ( $.browser.mozilla ) { - transitionEnd = "transitionend" + transitionEnd = "transitionend" } else if ( $.browser.opera ) { - transitionEnd = "oTransitionEnd" + transitionEnd = "oTransitionEnd" } } }) \ No newline at end of file