Use shorthand notion.
authorMichael M Slusarz <slusarz@curecanti.org>
Thu, 15 Oct 2009 18:42:33 +0000 (12:42 -0600)
committerMichael M Slusarz <slusarz@curecanti.org>
Fri, 16 Oct 2009 08:43:18 +0000 (02:43 -0600)
imp/js/ContextSensitive.js
imp/js/DimpBase.js
imp/js/DimpCore.js
imp/js/ViewPort.js
imp/js/imp.js
imp/js/message.js

index d963ee5..989dbef 100644 (file)
@@ -86,7 +86,7 @@ var ContextSensitive = Class.create({
             this.current.splice(idx, this.current.size() - idx).each(function(s) {
                 // Fade-out on final display.
                 if (!immediate && idx == 0) {
-                    Effect.Fade(s, { duration: 0.15 });
+                    s.fade({ duration: 0.15 });
                 } else {
                     $(s).hide();
                 }
@@ -288,7 +288,7 @@ var ContextSensitive = Class.create({
             elt.show();
         } else {
             // Fade-in on initial display.
-            Effect.Appear(elt, { duration: 0.15 });
+            elt.appear({ duration: 0.15 });
         }
 
         this.current.push(id);
index f75282e..e653ce8 100644 (file)
@@ -2520,7 +2520,7 @@ var DimpBase = {
             $(id + 'Loading').clonePosition(id == 'viewport' ? 'msgList' : 'splitBar', { setLeft: false, setTop: true, setHeight: false, setWidth: false }).show();
             c = 'progress';
         } else {
-            Effect.Fade(id + 'Loading', { duration: 0.2 });
+            $(id + 'Loading').fade({ duration: 0.2 });
             c = 'default';
         }
         $(document.body).setStyle({ cursor: c });
index bbff4ad..48c94f3 100644 (file)
@@ -401,10 +401,10 @@ var DimpCore = {
                     IMP.unblockImages(e);
                 } else if (elt.hasClassName('toggleQuoteShow')) {
                     [ elt, elt.next() ].invoke('toggle');
-                    Effect.BlindDown(elt.next(1), { duration: 0.2, queue: { position: 'end', scope: 'showquote', limit: 2 } });
+                    elt.next(1).blindDown({ duration: 0.2, queue: { position: 'end', scope: 'showquote', limit: 2 } });
                 } else if (elt.hasClassName('toggleQuoteHide')) {
                     [ elt, elt.previous() ].invoke('toggle');
-                    Effect.BlindUp(elt.next(), { duration: 0.2, queue: { position: 'end', scope: 'showquote', limit: 2 } });
+                    elt.next().blindUp({ duration: 0.2, queue: { position: 'end', scope: 'showquote', limit: 2 } });
                 } else if (elt.hasClassName('pgpVerifyMsg')) {
                     elt.replace(DIMP.text.verify);
                     DimpCore.reloadMessage({ pgp_verify_msg: 1 });
index 762db06..8bb58f7 100644 (file)
@@ -297,7 +297,7 @@ var ViewPort = Class.create({
         // If we have visible elements to remove, only call refresh after
         // the last effect has finished.
         if (vsize) {
-            // Set 'to' to a value slightly above 0 to prevent Effect.Fade
+            // Set 'to' to a value slightly above 0 to prevent fade()
             // from auto hiding.  Hiding is unnecessary, since we will be
             // removing from the document shortly.
             args = { duration: 0.25, to: 0.01 };
@@ -305,7 +305,7 @@ var ViewPort = Class.create({
                 if (++i == vsize) {
                     args.afterFinish = this._removeids.bind(this, vs, opts);
                 }
-                Effect.Fade(v, args);
+                v.fade(args);
             }, this);
         } else {
             this._removeids(vs, opts);
index 8456e28..614c6e2 100644 (file)
@@ -37,7 +37,7 @@ document.observe('dom:loaded', function() {
 
         e.stop();
 
-        Effect.Fade(elt, {
+        elt.fade({
             afterFinish: function() { elt.remove(); },
             duration: 0.6
         });
index e7777a7..ac433ab 100644 (file)
@@ -176,10 +176,10 @@ var ImpMessage = {
                 IMP.unblockImages(e);
             } else if (elt.match('SPAN.toggleQuoteShow')) {
                 [ elt, elt.next() ].invoke('toggle');
-                Effect.BlindDown(elt.next(1), { duration: 0.2, queue: { position: 'end', scope: 'showquote', limit: 2 } });
+                elt.next(1).blindDown({ duration: 0.2, queue: { position: 'end', scope: 'showquote', limit: 2 } });
             } else if (elt.match('SPAN.toggleQuoteHide')) {
                 [ elt, elt.previous() ].invoke('toggle');
-                Effect.BlindUp(elt.next(), { duration: 0.2, queue: { position: 'end', scope: 'showquote', limit: 2 } });
+                elt.next().blindUp({ duration: 0.2, queue: { position: 'end', scope: 'showquote', limit: 2 } });
             }
 
             elt = elt.up();