diff options
author | arkascha <github@christian-reiner.info> | 2013-06-13 18:25:48 +0400 |
---|---|---|
committer | arkascha <github@christian-reiner.info> | 2013-06-13 18:25:48 +0400 |
commit | fcfb713ebe59f0f06179d160fa33b34af24258a6 (patch) | |
tree | cd9364ec7720792a00819df756bac6df7642d7be /fluxx_compensator | |
parent | a0661278c2e8d130ae5cb08c5dd58e79fc0680f2 (diff) |
fluxx-compensator: Hotfix to prevent double triggered toggle actions under certain race conditions.
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 5fb7ae151..8778a9c22 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(){OC.FluXX.time(handle);},100); // should be preloaded... + var timer = setTimeout(function(){$('head #fluxx-transitions').off('load');OC.FluXX.time(handle);},100); // 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 |