resourceloader: Make various CSSMin performance optimizations and cleanups
[lhc/web/wiklou.git] / resources / src / mediawiki.messagePoster / mediawiki.messagePoster.WikitextMessagePoster.js
index ad01865..a2dbcd4 100644 (file)
@@ -1,4 +1,3 @@
-/*global OO*/
 ( function ( mw, $ ) {
        /**
         * This is an implementation of MessagePoster for wikitext talk pages.
@@ -8,9 +7,10 @@
         *
         * @constructor
         * @param {mw.Title} title Wikitext page in a talk namespace, to post to
+        * @param {mw.Api} api mw.Api object to use
         */
-       function WikitextMessagePoster( title ) {
-               this.api = new mw.Api();
+       function WikitextMessagePoster( title, api ) {
+               this.api = api;
                this.title = title;
        }