Changeset 5735
- Timestamp:
- 10/29/07 07:16:43 (1 year ago)
- Files:
-
- trunk/lib/response/sfWebResponse.class.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/lib/response/sfWebResponse.class.php
r5707 r5735 4 4 * This file is part of the symfony package. 5 5 * (c) 2004-2006 Fabien Potencier <fabien.potencier@symfony-project.com> 6 * 6 * 7 7 * For the full copyright and license information, please view the LICENSE 8 8 * file that was distributed with this source code. … … 13 13 * 14 14 * This class manages web reponses. It supports cookies and headers management. 15 * 15 * 16 16 * @package symfony 17 17 * @subpackage response … … 588 588 } 589 589 590 return isset($this->javascript [$position]) ? $this->javascript[$position] : array();590 return isset($this->javascripts[$position]) ? $this->javascripts[$position] : array(); 591 591 } 592 592 … … 600 600 public function addJavascript($js, $position = '', $options = array()) 601 601 { 602 if (!isset($this->javascript [$position]))603 { 604 $this->javascript [$position] = array();605 } 606 607 $this->javascript [$position][$js] = $options;602 if (!isset($this->javascripts[$position])) 603 { 604 $this->javascripts[$position] = array(); 605 } 606 607 $this->javascripts[$position][$js] = $options; 608 608 } 609 609