Skip to content
Permalink
Browse files

Updating file headers.

Removing newlines.
  • Loading branch information...
markstory committed Jul 17, 2009
1 parent 04b151e commit 4a4b9eefe5282bb3df557af0ba0c80462a6e6c61
@@ -18,10 +18,7 @@
* @copyright Copyright 2006-2008, Cake Software Foundation, Inc.
* @link http://www.cakefoundation.org/projects/info/cakephp CakePHP Project
* @package cake
* @subpackage cake.
* @version
* @modifiedby
* @lastmodified
* @subpackage cake.view.helpers
* @license http://www.opensource.org/licenses/mit-license.php The MIT License
*/
App::import('Helper', 'Js');
@@ -248,4 +245,4 @@ function slider($options = array()) {
return $this->_methodTemplate('slider', $template, $options, $callbacks);
}
}
?>
?>
@@ -797,4 +797,4 @@ function _toQuerystring($parameters) {
return $out;
}
}
?>
?>
@@ -12,20 +12,19 @@
*
* PHP versions 4 and 5
*
* CakePHP : Rapid Development Framework <http://www.cakephp.org/>
* Copyright 2006-2008, Cake Software Foundation, Inc.
* 1785 E. Sahara Avenue, Suite 490-204
* Las Vegas, Nevada 89104
* CakePHP(tm) : Rapid Development Framework (http://www.cakephp.org)
* Copyright 2005-2009, Cake Software Foundation, Inc. (http://www.cakefoundation.org)
*
* Licensed under The MIT License
* Redistributions of files must retain the above copyright notice.
*
* @filesource
* @copyright Copyright 2006-2008, Cake Software Foundation, Inc.
* @link http://www.cakefoundation.org/projects/info/cakephp CakePHP Project
* @package cake
* @subpackage cake.views.helpers
* @license http://www.opensource.org/licenses/mit-license.php The MIT License
* @copyright Copyright 2005-2009, Cake Software Foundation, Inc. (http://www.cakefoundation.org)
* @link http://www.cakefoundation.org/projects/info/cakephp CakePHP(tm) Project
* @package cake
* @subpackage cake.libs.view.helpers
* @since CakePHP(tm) v 1.3
* @license http://www.opensource.org/licenses/mit-license.php The MIT License
*/
App::import('Helper', 'Js');
@@ -67,7 +66,6 @@ class MootoolsEngineHelper extends JsBaseEngineHelper {
'step' => 'steps'
)
);
/**
* Create javascript selector for a CSS rule
*
@@ -86,7 +84,6 @@ function get($selector) {
$this->selection = '$$("' . $selector . '")';
return $this;
}
/**
* Add an event to the script cache. Operates on the currently selected elements.
*
@@ -114,7 +111,6 @@ function event($type, $callback, $options = array()) {
$out = $this->selection . ".addEvent(\"{$type}\", $callback);";
return $out;
}
/**
* Create a domReady event. This is a special event in many libraries
*
@@ -125,7 +121,6 @@ function domReady($functionBody) {
$this->selection = 'window';
return $this->event('domready', $functionBody, array('stop' => false));
}
/**
* Create an iteration over the current selection result.
*
@@ -136,7 +131,6 @@ function domReady($functionBody) {
function each($callback) {
return $this->selection . '.each(function (item, index) {' . $callback . '});';
}
/**
* Trigger an Effect.
*
@@ -176,7 +170,6 @@ function effect($name, $options = array()) {
}
return $this->selection . '.' . $effect . ';';
}
/**
* Create an new Request.
*
@@ -213,7 +206,6 @@ function request($url, $options = array()) {
$options = $this->_parseOptions($options, $callbacks);
return "var jsRequest = new Request$type({{$options}}).send($data);";
}
/**
* Create a sortable element.
*
@@ -229,7 +221,6 @@ function sortable($options = array()) {
$options = $this->_parseOptions($options, $callbacks);
return 'var jsSortable = new Sortables(' . $this->selection . ', {' . $options . '});';
}
/**
* Create a Draggable element.
*
@@ -245,7 +236,6 @@ function drag($options = array()) {
$options = $this->_parseOptions($options, $callbacks);
return 'var jsDrag = new Drag(' . $this->selection . ', {' . $options . '});';
}
/**
* Create a Droppable element.
*
@@ -285,7 +275,6 @@ function drop($options = array()) {
$this->selection = $options['droppables'];
return $out;
}
/**
* Create a slider control
*
@@ -315,4 +304,4 @@ function slider($options = array()) {
return $out;
}
}
?>
?>
@@ -7,23 +7,19 @@
*
* PHP versions 4 and 5
*
* CakePHP : Rapid Development Framework <http://www.cakephp.org/>
* Copyright 2006-2008, Cake Software Foundation, Inc.
* 1785 E. Sahara Avenue, Suite 490-204
* Las Vegas, Nevada 89104
* CakePHP(tm) : Rapid Development Framework (http://www.cakephp.org)
* Copyright 2005-2009, Cake Software Foundation, Inc. (http://www.cakefoundation.org)
*
* Licensed under The MIT License
* Redistributions of files must retain the above copyright notice.
*
* @filesource
* @copyright Copyright 2006-2008, Cake Software Foundation, Inc.
* @link http://www.cakefoundation.org/projects/info/cakephp CakePHP Project
* @package cake
* @subpackage cake.
* @version
* @modifiedby
* @lastmodified
* @license http://www.opensource.org/licenses/mit-license.php The MIT License
* @copyright Copyright 2005-2009, Cake Software Foundation, Inc. (http://www.cakefoundation.org)
* @link http://www.cakefoundation.org/projects/info/cakephp CakePHP(tm) Project
* @package cake
* @subpackage cake.libs.view.helpers
* @since CakePHP(tm) v 1.3
* @license http://www.opensource.org/licenses/mit-license.php The MIT License
*/
App::import('Helper', 'Js');
@@ -67,7 +63,6 @@ class PrototypeEngineHelper extends JsBaseEngineHelper {
'value' => 'sliderValue',
)
);
/**
* Create javascript selector for a CSS rule
*
@@ -86,7 +81,6 @@ function get($selector) {
$this->selection = '$$("' . $selector . '")';
return $this;
}
/**
* Add an event to the script cache. Operates on the currently selected elements.
*
@@ -114,7 +108,6 @@ function event($type, $callback, $options = array()) {
$out = $this->selection . ".observe(\"{$type}\", $callback);";
return $out;
}
/**
* Create a domReady event. This is a special event in many libraries
*
@@ -125,7 +118,6 @@ function domReady($functionBody) {
$this->selection = 'document';
return $this->event('dom:loaded', $functionBody, array('stop' => false));
}
/**
* Create an iteration over the current selection result.
*
@@ -136,7 +128,6 @@ function domReady($functionBody) {
function each($callback) {
return $this->selection . '.each(function (item, index) {' . $callback . '});';
}
/**
* Trigger an Effect.
*
@@ -181,7 +172,6 @@ function effect($name, $options = array()) {
}
return $effect;
}
/**
* Create an Ajax or Ajax.Updater call.
*
@@ -209,7 +199,6 @@ function request($url, $options = array()) {
}
return "var jsRequest = new Ajax$type($url$options);";
}
/**
* Create a sortable element.
*
@@ -228,7 +217,6 @@ function sortable($options = array()) {
}
return 'var jsSortable = Sortable.create(' . $this->selection . $options . ');';
}
/**
* Create a Draggable element.
*
@@ -247,7 +235,6 @@ function drag($options = array()) {
}
return 'var jsDrag = new Draggable(' . $this->selection . $options . ');';
}
/**
* Create a Droppable element.
*
@@ -266,7 +253,6 @@ function drop($options = array()) {
}
return 'Droppables.add(' . $this->selection . $options . ');';
}
/**
* Creates a slider control widget.
*
@@ -296,4 +282,4 @@ function slider($options = array()) {
return $out;
}
}
?>
?>
@@ -2,8 +2,6 @@
/**
* JqueryEngineTestCase
*
*
*
* PHP versions 4 and 5
*
* CakePHP : Rapid Development Framework <http://www.cakephp.org/>
@@ -1,5 +1,4 @@
<?php
/* SVN FILE: $Id$ */
/**
* JsHelper Test Case
*
@@ -18,10 +17,7 @@
* @link https://trac.cakephp.org/wiki/Developement/TestSuite CakePHP(tm) Tests
* @package cake
* @subpackage cake.tests.cases.libs.view.helpers
* @since CakePHP(tm) v 1.2.0.4206
* @version $Revision$
* @modifiedby $LastChangedBy$
* @lastmodified $Date$
* @since CakePHP(tm) v 1.3
* @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License
*/
App::import('Helper', array('Js', 'Html'));
@@ -76,7 +72,7 @@ class JsHelperTestCase extends CakeTestCase {
*/
var $cDataEnd = 'preg:/[^\]]*\]\]\>[\s\r\n]*/';
/**
* setUp method
* startTest method
*
* @access public
* @return void
@@ -90,7 +86,7 @@ function startTest() {
ClassRegistry::addObject('view', $view);
}
/**
* tearDown method
* endTest method
*
* @access public
* @return void
@@ -148,7 +148,6 @@ function testEffect() {
$result = $this->Moo->effect('slideOut', array('speed' => 'slow'));
$expected = '$("foo").set("slide", {duration:"long"}).slide("out");';
$this->assertEqual($result, $expected);
}
/**
* Test Request Generation
@@ -207,7 +207,6 @@ function testRequest() {
));
$expected = 'var jsRequest = new Ajax.Request("/people/edit/1", {method:"post", onComplete:doSuccess, onFailure:handleError, parameters:{"name":"jim","height":"185cm"}});';
$this->assertEqual($result, $expected);
}
/**
* test sortable list generation
@@ -1,27 +1,22 @@
<?php
/* SVN FILE: $Id$ */
/**
* AllCoreJavascriptHelpersGroupTest file
*
* Long description for file
*
* PHP versions 4 and 5
*
* CakePHP(tm) Tests <https://trac.cakephp.org/wiki/Developement/TestSuite>
* Copyright 2005-2008, Cake Software Foundation, Inc. (http://www.cakefoundation.org)
* Copyright 2005-2009, Cake Software Foundation, Inc. (http://www.cakefoundation.org)
*
* Licensed under The Open Group Test Suite License
* Redistributions of files must retain the above copyright notice.
*
* @filesource
* @copyright Copyright 2005-2008, Cake Software Foundation, Inc. (http://www.cakefoundation.org)
* @copyright Copyright 2005-2009, Cake Software Foundation, Inc. (http://www.cakefoundation.org)
* @link https://trac.cakephp.org/wiki/Developement/TestSuite CakePHP(tm) Tests
* @package cake
* @subpackage cake.tests.groups
* @since CakePHP(tm) v 1.2.0.4206
* @version $Revision$
* @modifiedby $LastChangedBy$
* @lastmodified $Date$
* @since CakePHP(tm) v 1.3
* @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License
*/
/**

0 comments on commit 4a4b9ee

Please sign in to comment.
You can’t perform that action at this time.