atk4/atk4 — pull request #431 by DarkSide666 (2013-09-20 14:16:30+00:00)
Title: jQuery_Chain: support for "ui" parameter

1) jQuery-UI mostly use callback `functions like function(e,ui){...}`. It was kind of hacky to add this `ui` parameter into JS function parameter list. Now it'll be already there by default for developers.
2) added preventDefault support in custom library case.

Example,
```
$this->options['active'] = // should be JS function with 'ui' parameter
$this->js(null,'
$url = $(ui.newHeader[0]).children("a").attr("href"); // use ui parameter here
$.get($url, function (data) {
$(ui.newHeader[0]).next().html(data);
});
')->_enclose(null,true);

will generate:
function(e,ui) {
e.preventDefault();
e.stopDefault();
$url = $(ui.newHeader[0]).children("a").attr("href"); // use ui parameter here
$.get($url, function (data) {
$(ui.newHeader[0]).next().html(data);
});
}
```