From 7c00ab45f7f1c81769ca1cf6278c30a5402179f4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Mon, 9 Apr 2012 11:25:31 +0200 Subject: [PATCH] Add default values to Fade Effect Without default values readConfig returns undefined values causing the effect not to work. This needs to be documented. --- effects/fade/package/contents/code/main.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/effects/fade/package/contents/code/main.js b/effects/fade/package/contents/code/main.js index 9a9b6a3e76..e47153ecf2 100644 --- a/effects/fade/package/contents/code/main.js +++ b/effects/fade/package/contents/code/main.js @@ -33,9 +33,9 @@ function isLoginWindow(w) { var fadeInTime, fadeOutTime, fadeWindows; function loadConfig() { - fadeInTime = animationTime(effect.readConfig("FadeInTime")); - fadeOutTime = animationTime(effect.readConfig("FadeOutTime")); - fadeWindows = effect.readConfig("FadeWindows"); + fadeInTime = animationTime(effect.readConfig("FadeInTime", 150)); + fadeOutTime = animationTime(effect.readConfig("FadeOutTime", 150)); + fadeWindows = effect.readConfig("FadeWindows", true); } loadConfig(); effect.configChanged.connect(function() {