diff --git a/cake/libs/view/helpers/js.php b/cake/libs/view/helpers/js.php index 4f899253e..d8e30a39f 100644 --- a/cake/libs/view/helpers/js.php +++ b/cake/libs/view/helpers/js.php @@ -485,6 +485,7 @@ class JsBaseEngineHelper extends AppHelper { * @return object instance of $this. Allows chained methods. **/ function get($selector, $multiple = false) { + trigger_error(sprintf(__('%s does not have get() implemented', true), get_class($this)), E_USER_WARNING); return $this; } /** @@ -496,7 +497,7 @@ class JsBaseEngineHelper extends AppHelper { * @return string completed event handler **/ function event($type, $callback, $wrap = false) { - + trigger_error(sprintf(__('%s does not have event() implemented', true), get_class($this)), E_USER_WARNING); } /** * Create a domReady event. This is a special event in many libraries @@ -505,7 +506,7 @@ class JsBaseEngineHelper extends AppHelper { * @return string completed domReady method **/ function domReady($functionBody) { - + trigger_error(sprintf(__('%s does not have domReady() implemented', true), get_class($this)), E_USER_WARNING); } /** * Create an iteration over the current selection result. @@ -514,7 +515,7 @@ class JsBaseEngineHelper extends AppHelper { * @return string completed iteration **/ function each($callback) { - + trigger_error(sprintf(__('%s does not have each() implemented', true), get_class($this)), E_USER_WARNING); } /** * Parse an options assoc array into an Javascript object literal. diff --git a/cake/tests/cases/libs/view/helpers/jquery_engine.test.php b/cake/tests/cases/libs/view/helpers/jquery_engine.test.php index 6a9994709..7c184c31f 100644 --- a/cake/tests/cases/libs/view/helpers/jquery_engine.test.php +++ b/cake/tests/cases/libs/view/helpers/jquery_engine.test.php @@ -95,8 +95,7 @@ class JqueryEngineHelperTestCase extends CakeTestCase { $result = $this->Jquery->get('#foo')->each('$(this).hide();'); $expected = "\$('#foo').each(function () {\$(this).hide();});"; $this->assertEqual($result, $expected); - } - + } ?> \ No newline at end of file