$.extend( mw.Api.prototype, {
/**
* Determine if a category exists.
- * @param {mw.Title} title
+ *
+ * @param {mw.Title|string} title
* @param {Function} [ok] Success callback (deprecated)
* @param {Function} [err] Error callback (deprecated)
* @return {jQuery.Promise}
/**
* Get a list of categories that match a certain prefix.
*
- * E.g. given "Foo", return "Food", "Foolish people", "Foosball tables" ...
+ * E.g. given "Foo", return "Food", "Foolish people", "Foosball tables"...
*
* @param {string} prefix Prefix to match.
* @param {Function} [ok] Success callback (deprecated)
},
/**
- * Get the categories that a particular page on the wiki belongs to
- * @param {mw.Title} title
+ * Get the categories that a particular page on the wiki belongs to.
+ *
+ * @param {mw.Title|string} title
* @param {Function} [ok] Success callback (deprecated)
* @param {Function} [err] Error callback (deprecated)
* @param {boolean} [async=true] Asynchronousness
.fail( err )
.promise( { abort: apiPromise.abort } );
}
-
} );
/**
$.extend( mw.Api.prototype, {
/**
- * Convinience method for 'action=parse'.
+ * Convenience method for 'action=parse'.
*
* @param {string} wikitext
* @param {Function} [ok] Success callback (deprecated)
*/
function doWatchInternal( pages, ok, err, addParams ) {
// XXX: Parameter addParams is undocumented because we inherit this
- // documentation in the public method..
+ // documentation in the public method...
var apiPromise = this.post(
$.extend(
{
unwatch: function ( pages, ok, err ) {
return doWatchInternal.call( this, pages, ok, err, { unwatch: 1 } );
}
-
} );
/**