From 178017e4b70973cc20e030004ed0f9706b7ccfa0 Mon Sep 17 00:00:00 2001 From: Robert Basic Date: Tue, 26 Jul 2011 18:36:35 +0200 Subject: [PATCH] remove unnecessary calls to getIterator --- library/Zend/Dojo/Form/DisplayGroup.php | 3 +-- library/Zend/Dojo/Form/Element/Dijit.php | 3 +-- library/Zend/Dojo/Form/Form.php | 3 +-- library/Zend/Dojo/Form/SubForm.php | 3 +-- 4 files changed, 4 insertions(+), 8 deletions(-) diff --git a/library/Zend/Dojo/Form/DisplayGroup.php b/library/Zend/Dojo/Form/DisplayGroup.php index 553af261a0c..de0e03b1427 100644 --- a/library/Zend/Dojo/Form/DisplayGroup.php +++ b/library/Zend/Dojo/Form/DisplayGroup.php @@ -65,8 +65,7 @@ public function setView(View $view = null) if (null !== $view) { if(false === $view->broker()->isLoaded('dojo')) { $loader = new \Zend\Dojo\View\HelperLoader(); - $view->broker()->getClassLoader() - ->registerPlugins($loader->getIterator()); + $view->broker()->getClassLoader()->registerPlugins($loader); } } return parent::setView($view); diff --git a/library/Zend/Dojo/Form/Element/Dijit.php b/library/Zend/Dojo/Form/Element/Dijit.php index 1f3264a3774..9a7bab4500b 100644 --- a/library/Zend/Dojo/Form/Element/Dijit.php +++ b/library/Zend/Dojo/Form/Element/Dijit.php @@ -186,8 +186,7 @@ public function setView(View $view = null) if (null !== $view) { if(false === $view->broker()->isLoaded('dojo')) { $loader = new \Zend\Dojo\View\HelperLoader(); - $view->broker()->getClassLoader() - ->registerPlugins($loader->getIterator()); + $view->broker()->getClassLoader()->registerPlugins($loader); } } return parent::setView($view); diff --git a/library/Zend/Dojo/Form/Form.php b/library/Zend/Dojo/Form/Form.php index 9ba316ef525..7cece58f6dc 100644 --- a/library/Zend/Dojo/Form/Form.php +++ b/library/Zend/Dojo/Form/Form.php @@ -85,8 +85,7 @@ public function setView(View $view = null) if (null !== $view) { if(false === $view->broker()->isLoaded('dojo')) { $loader = new \Zend\Dojo\View\HelperLoader(); - $view->broker()->getClassLoader() - ->registerPlugins($loader->getIterator()); + $view->broker()->getClassLoader()->registerPlugins($loader); } } return parent::setView($view); diff --git a/library/Zend/Dojo/Form/SubForm.php b/library/Zend/Dojo/Form/SubForm.php index 156db90ae75..d8f9f7af8ad 100644 --- a/library/Zend/Dojo/Form/SubForm.php +++ b/library/Zend/Dojo/Form/SubForm.php @@ -87,8 +87,7 @@ public function getView() if (!$this->_dojoViewPathRegistered) { if(false === $view->broker()->isLoaded('dojo')) { $loader = new \Zend\Dojo\View\HelperLoader(); - $view->broker()->getClassLoader() - ->registerPlugins($loader->getIterator()); + $view->broker()->getClassLoader()->registerPlugins($loader); } $this->_dojoViewPathRegistered = true; }