From: Michael M Slusarz Date: Wed, 3 Mar 2010 20:14:56 +0000 (-0700) Subject: Optimization X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=234e9a73dfc5d56e22c9c891ed667722c6655c21;p=horde.git Optimization --- 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(); } /**