Optimization
authorMichael M Slusarz <slusarz@curecanti.org>
Wed, 3 Mar 2010 20:14:56 +0000 (13:14 -0700)
committerMichael M Slusarz <slusarz@curecanti.org>
Thu, 4 Mar 2010 07:39:58 +0000 (00:39 -0700)
imp/lib/Ui/Compose.php

index bc4cbdb..fa794b2 100644 (file)
@@ -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();
     }
 
     /**