From 234e9a73dfc5d56e22c9c891ed667722c6655c21 Mon Sep 17 00:00:00 2001 From: Michael M Slusarz Date: Wed, 3 Mar 2010 13:14:56 -0700 Subject: [PATCH] Optimization --- imp/lib/Ui/Compose.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/imp/lib/Ui/Compose.php b/imp/lib/Ui/Compose.php index bc4cbdb70..fa794b263 100644 --- a/imp/lib/Ui/Compose.php +++ b/imp/lib/Ui/Compose.php @@ -124,8 +124,7 @@ class IMP_Ui_Compose { /* Attach autocompleters to the compose form elements. */ foreach ($fields as $val) { - $imple = Horde_Ajax_Imple::factory(array('imp', 'ContactAutoCompleter'), array('triggerId' => $val)); - $imple->attach(); + Horde_Ajax_Imple::factory(array('imp', 'ContactAutoCompleter'), array('triggerId' => $val))->attach(); } } @@ -157,8 +156,7 @@ class IMP_Ui_Compose ) ); - $imple = Horde_Ajax_Imple::factory('SpellChecker', $args); - $imple->attach(); + Horde_Ajax_Imple::factory('SpellChecker', $args)->attach(); } /** -- 2.11.0