indvd00m@0
|
1 |
/* ===================================================
|
indvd00m@0
|
2 |
* bootstrap-transition.js v2.3.1
|
indvd00m@0
|
3 |
* http://twitter.github.com/bootstrap/javascript.html#transitions
|
indvd00m@0
|
4 |
* ===================================================
|
indvd00m@0
|
5 |
* Copyright 2012 Twitter, Inc.
|
indvd00m@0
|
6 |
*
|
indvd00m@0
|
7 |
* Licensed under the Apache License, Version 2.0 (the "License");
|
indvd00m@0
|
8 |
* you may not use this file except in compliance with the License.
|
indvd00m@0
|
9 |
* You may obtain a copy of the License at
|
indvd00m@0
|
10 |
*
|
indvd00m@0
|
11 |
* http://www.apache.org/licenses/LICENSE-2.0
|
indvd00m@0
|
12 |
*
|
indvd00m@0
|
13 |
* Unless required by applicable law or agreed to in writing, software
|
indvd00m@0
|
14 |
* distributed under the License is distributed on an "AS IS" BASIS,
|
indvd00m@0
|
15 |
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
indvd00m@0
|
16 |
* See the License for the specific language governing permissions and
|
indvd00m@0
|
17 |
* limitations under the License.
|
indvd00m@0
|
18 |
* ========================================================== */
|
indvd00m@0
|
19 |
|
indvd00m@0
|
20 |
|
indvd00m@0
|
21 |
!function ($) {
|
indvd00m@0
|
22 |
|
indvd00m@0
|
23 |
"use strict"; // jshint ;_;
|
indvd00m@0
|
24 |
|
indvd00m@0
|
25 |
|
indvd00m@0
|
26 |
/* CSS TRANSITION SUPPORT (http://www.modernizr.com/)
|
indvd00m@0
|
27 |
* ======================================================= */
|
indvd00m@0
|
28 |
|
indvd00m@0
|
29 |
$(function () {
|
indvd00m@0
|
30 |
|
indvd00m@0
|
31 |
$.support.transition = (function () {
|
indvd00m@0
|
32 |
|
indvd00m@0
|
33 |
var transitionEnd = (function () {
|
indvd00m@0
|
34 |
|
indvd00m@0
|
35 |
var el = document.createElement('bootstrap')
|
indvd00m@0
|
36 |
, transEndEventNames = {
|
indvd00m@0
|
37 |
'WebkitTransition' : 'webkitTransitionEnd'
|
indvd00m@0
|
38 |
, 'MozTransition' : 'transitionend'
|
indvd00m@0
|
39 |
, 'OTransition' : 'oTransitionEnd otransitionend'
|
indvd00m@0
|
40 |
, 'transition' : 'transitionend'
|
indvd00m@0
|
41 |
}
|
indvd00m@0
|
42 |
, name
|
indvd00m@0
|
43 |
|
indvd00m@0
|
44 |
for (name in transEndEventNames){
|
indvd00m@0
|
45 |
if (el.style[name] !== undefined) {
|
indvd00m@0
|
46 |
return transEndEventNames[name]
|
indvd00m@0
|
47 |
}
|
indvd00m@0
|
48 |
}
|
indvd00m@0
|
49 |
|
indvd00m@0
|
50 |
}())
|
indvd00m@0
|
51 |
|
indvd00m@0
|
52 |
return transitionEnd && {
|
indvd00m@0
|
53 |
end: transitionEnd
|
indvd00m@0
|
54 |
}
|
indvd00m@0
|
55 |
|
indvd00m@0
|
56 |
})()
|
indvd00m@0
|
57 |
|
indvd00m@0
|
58 |
})
|
indvd00m@0
|
59 |
|
indvd00m@0
|
60 |
}(window.jQuery); |