diff options
author | arkascha <github@christian-reiner.info> | 2013-06-13 18:33:05 +0400 |
---|---|---|
committer | arkascha <github@christian-reiner.info> | 2013-06-13 18:33:05 +0400 |
commit | 999fe45b1c11b2ed5c2b905eb82f9a3c897b88dd (patch) | |
tree | d479d996f763da45fe68084041a352ced01358f8 /fluxx_compensator | |
parent | fcfb713ebe59f0f06179d160fa33b34af24258a6 (diff) |
fluxx-compensator: Slowed down style loading saftey catch to interfere less with normal toggling actions.
Diffstat (limited to 'fluxx_compensator')
-rw-r--r-- | fluxx_compensator/js/fluxx.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fluxx_compensator/js/fluxx.js b/fluxx_compensator/js/fluxx.js index 8778a9c22..9896f7f45 100644 --- a/fluxx_compensator/js/fluxx.js +++ b/fluxx_compensator/js/fluxx.js @@ -492,7 +492,7 @@ OC.FluXX={ // temporarily include transition style rules if not yet present (should not be!) var transitions=OC.FluXX.transitions.clone().attr('rel','stylesheet').attr('id','fluxx-transitions').appendTo('head'); // some safety catch for browsers that do not fire the load event when stuff is loaded (safari) - var timer = setTimeout(function(){$('head #fluxx-transitions').off('load');OC.FluXX.time(handle);},100); // should be preloaded... + var timer = setTimeout(function(){$('head #fluxx-transitions').off('load');OC.FluXX.time(handle);},500); // should be preloaded... // the more elegant approach however is to react on the load event (_if_ fired) $('head #fluxx-transitions').one('load',function(){clearTimeout(timer);OC.FluXX.time(handle);}); } // OC.FluXX.toggle |