Add missing variable check
authorMichael M Slusarz <slusarz@curecanti.org>
Tue, 14 Apr 2009 05:57:13 +0000 (23:57 -0600)
committerMichael M Slusarz <slusarz@curecanti.org>
Tue, 14 Apr 2009 15:15:37 +0000 (09:15 -0600)
imp/js/src/ContextSensitive.js

index 49020f0..b764df5 100644 (file)
@@ -80,7 +80,7 @@ var ContextSensitive = Class.create({
         if (this.current.size()) {
             this.current.splice(idx, this.current.size() - idx).each(function(s) {
                 // Fade-out on final display.
-                if (idx == 0) {
+                if (!immediate && idx == 0) {
                     Effect.Fade(s, { duration: 0.15 });
                 } else {
                     $(s).hide();