File tree Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change 8
8
*/
9
9
10
10
( function ( $ ) {
11
- $ . transit = { version : "0.0.1" } ;
11
+ $ . transit = {
12
+ version : "0.0.1" ,
13
+ enabled : true // Will simply transition "instantly" if false
14
+ } ;
12
15
13
16
var div = document . createElement ( 'div' ) ;
14
17
401
404
delete properties . delay ;
402
405
}
403
406
407
+ // True if transit should work using transitions.
408
+ var work = $ . transit . enabled && support . transition ;
409
+
404
410
// Compute delay until callback.
405
411
// If this becomes 0, don't bother setting the transition property.
406
- var i = support . transition ? ( parseInt ( duration ) + parseInt ( delay ) ) : 0 ;
412
+ var i = work ? ( parseInt ( duration ) + parseInt ( delay ) ) : 0 ;
407
413
408
414
// Save the old transitions of each element so we can restore it later.
409
415
var oldTransitions = { } ;
Original file line number Diff line number Diff line change @@ -613,6 +613,6 @@ title: Your new Proton site
613
613
614
614
window .setTimeout (function () {
615
615
a (x == 2 );
616
- }, 600 );
616
+ }, 1600 );
617
617
},
618
618
});
You can’t perform that action at this time.
0 commit comments