Skip to content

Commit

Permalink
remove unnecessary calls to getIterator
Browse files Browse the repository at this point in the history
  • Loading branch information
robertbasic committed Jul 26, 2011
1 parent 31f2cde commit 178017e
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 8 deletions.
3 changes: 1 addition & 2 deletions library/Zend/Dojo/Form/DisplayGroup.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
3 changes: 1 addition & 2 deletions library/Zend/Dojo/Form/Element/Dijit.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
3 changes: 1 addition & 2 deletions library/Zend/Dojo/Form/Form.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
3 changes: 1 addition & 2 deletions library/Zend/Dojo/Form/SubForm.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 178017e

Please sign in to comment.