Update JqueryEngineHelper.php

 I hope this one is correct.
Because this a feature request it should go on cakephp 2.6 branch.

I would like being able to specify more then one id to be called when updated after an ajax request.
I know it is also possible accomplish this, wrapping all tags with and external tag, but I want to have both options.

Due compatibility with apps already coded it checks if parameter is not an array

I was asked to build a Test case to back my change, so instead of using an string to indicate the following call that we want to update just the tag whose have the specified id we do this:
```php
<?=
	$this->Js->submit(
		__('Update'),
		array(
			'async' 			=>	true,
			'class'			=>	'btn btn-default',
			'div'				=>	array(
				'class'	=>	'form-group'
			),
			'method'			=>	'get',
			'update'			=>	array('#id_1', '#id_2'),
			'url' => array(
				'controller'	=>	'players',
				'action'		=> 	'get_player/' . $name
			)
		)
	);
?>
Please let me know if I should improve any part of my pull. Thanks for your patience.
Hello @markstory , the modification of the last patch is because the first version of it was less optimized than casting as @dereuromark pointed. This way is more more clear and efficient.
I am not sure if your message is to me. If that is the case how should I send you a test case which only involves "optimization"?

Thank you