Esanders has uploaded a new change for review. (
https://gerrit.wikimedia.org/r/404962 )
Change subject: Restore isSupported as deprecated dummy function
......................................................................
Restore isSupported as deprecated dummy function
Bug: T185143
Change-Id: I0be5d09390b70ee581262b4ba6421f5f51f2e696
---
M modules/jquery.wikiEditor.js
1 file changed, 14 insertions(+), 0 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/WikiEditor
refs/changes/62/404962/1
diff --git a/modules/jquery.wikiEditor.js b/modules/jquery.wikiEditor.js
index 5b098d8..691bcb3 100644
--- a/modules/jquery.wikiEditor.js
+++ b/modules/jquery.wikiEditor.js
@@ -61,6 +61,20 @@
imgPath: mw.config.get( 'wgExtensionAssetsPath' ) +
'/WikiEditor/modules/images/',
/**
+ * Checks if the client supports WikiEditor.
+ *
+ * Since 1.31 this check is deprecated and can be skipped as
all browsers
+ * which are served JS by MediaWiki support WikiEditor.
+ *
+ * @deprecated since 1.31
+ * @return {boolean}
+ */
+ isSupported: function () {
+ mw.log.warn( '$.wikiEditor.isSupported is deprecated.'
);
+ return true;
+ },
+
+ /**
* Checks if a module has a specific requirement
*
* @param {Object} module Module object
--
To view, visit https://gerrit.wikimedia.org/r/404962
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I0be5d09390b70ee581262b4ba6421f5f51f2e696
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/WikiEditor
Gerrit-Branch: master
Gerrit-Owner: Esanders <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits