Request.JSON в Mootools разных версий

Старый вариант кода (MooTools v1.2):

new Request.JSON({
   onFailure: showError,
   onSuccess: showArticle,
   url: 'index.php',
   data: {
      content: 'article',
      id: 1
   }
}).post();

Новый вариант кода (MooTools v1.3):

new Request.JSON({
   onFailure: showError,
   onSuccess: showArticle,
   url: 'index.php'
}).post({
   content: 'article',
   id: 1
});

комментарии