Board Thread:General Coding Help/@comment-9605025-20180428232938/@comment-27958705-20180508063303

then works fine in ie. problem in the callback function (simplified): function getButtonTexts { results = new mw.Api.get({}).query.allmessages; return [results[0]["*"], results[1]["*"]]; } it just doesn't work this way. it should be function getButtonTexts { new mw.Api.get({}).done(function(query) {       var results = query.allmessages;        //do stuff here    }); }