update bootstrap to 3.0.0-rc2
[bootswatch] / bower_components / bootstrap / js / transition.js
old mode 100644 (file)
new mode 100755 (executable)
index dfb6410..0cdcf9e
@@ -43,8 +43,8 @@
   // http://blog.alexmaccaw.com/css-transitions
   $.fn.emulateTransitionEnd = function (duration) {
     var called = false, $el    = this
-    $(this).one('webkitTransitionEnd', function () { called = true })
-    var callback = function () { if (!called) $($el).trigger('webkitTransitionEnd') }
+    $(this).one($.support.transition.end, function () { called = true })
+    var callback = function () { if (!called) $($el).trigger($.support.transition.end) }
     setTimeout(callback, duration)
     return this
   }