From 8e934502f626c0b1e843aaf55c486df762fee142 Mon Sep 17 00:00:00 2001 From: Michael M Slusarz Date: Thu, 15 Oct 2009 12:42:33 -0600 Subject: [PATCH] Use shorthand notion. --- imp/js/ContextSensitive.js | 4 ++-- imp/js/DimpBase.js | 2 +- imp/js/DimpCore.js | 4 ++-- imp/js/ViewPort.js | 4 ++-- imp/js/imp.js | 2 +- imp/js/message.js | 4 ++-- 6 files changed, 10 insertions(+), 10 deletions(-) diff --git a/imp/js/ContextSensitive.js b/imp/js/ContextSensitive.js index d963ee5c3..989dbef7f 100644 --- a/imp/js/ContextSensitive.js +++ b/imp/js/ContextSensitive.js @@ -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); diff --git a/imp/js/DimpBase.js b/imp/js/DimpBase.js index f75282e00..e653ce885 100644 --- a/imp/js/DimpBase.js +++ b/imp/js/DimpBase.js @@ -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 }); diff --git a/imp/js/DimpCore.js b/imp/js/DimpCore.js index bbff4ad06..48c94f3ca 100644 --- a/imp/js/DimpCore.js +++ b/imp/js/DimpCore.js @@ -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 }); diff --git a/imp/js/ViewPort.js b/imp/js/ViewPort.js index 762db06cc..8bb58f772 100644 --- a/imp/js/ViewPort.js +++ b/imp/js/ViewPort.js @@ -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); diff --git a/imp/js/imp.js b/imp/js/imp.js index 8456e2887..614c6e28c 100644 --- a/imp/js/imp.js +++ b/imp/js/imp.js @@ -37,7 +37,7 @@ document.observe('dom:loaded', function() { e.stop(); - Effect.Fade(elt, { + elt.fade({ afterFinish: function() { elt.remove(); }, duration: 0.6 }); diff --git a/imp/js/message.js b/imp/js/message.js index e7777a79b..ac433aba8 100644 --- a/imp/js/message.js +++ b/imp/js/message.js @@ -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(); -- 2.11.0