On Tue, Dec 13, 2011 at 11:03 PM, Daniel Antonio Peraza Cedrez <
danielper...@gmail.com> wrote:

> I took a moment to think better and I decided to switch the implementation
> to Aaron's Delegator:
>
> Delegator.register('change', 'ChainedSelect', function(event, element,
> api){
>
>         var target = document.getElement(api.get('target'));
>
>         var url = api.get('url');
>         var method = (api.get('method')) ? (api.get('method')) : ('post');
>

var method = api.get('method') || 'post';

It's a small optimization, but it also looks cleaner.

~Philip

Reply via email to