mediawiki.ForeignApi: Use `type === 'POST'` instead of `type !== 'GET'`
authorBartosz Dziewoński <matma.rex@gmail.com>
Sat, 29 Aug 2015 18:44:08 +0000 (20:44 +0200)
committerBartosz Dziewoński <matma.rex@gmail.com>
Sat, 29 Aug 2015 18:44:08 +0000 (20:44 +0200)
commit7f97802fa789161ae8a314bd3fb381855cc49532
tree81de4213f8bfbe6ef25cf93a958be7570baa05f1
parent72bd5c9e56bf453f39ca6f0fee5d1db47d6042e7
mediawiki.ForeignApi: Use `type === 'POST'` instead of `type !== 'GET'`

Works better when 'type' is not set (which can happen if someone is
calling #ajax directly rather than #get or #post), is consistent
with code in mediawiki.api, and better reflects what we really mean.

Change-Id: Iea265be5c0e6113e91e700124ac36a0b588ca25c
resources/src/mediawiki.api/mediawiki.ForeignApi.js