Ankita-ks has submitted this change and it was merged.

Change subject: Cleanup ext.LanguageToolCommand.js
......................................................................


Cleanup ext.LanguageToolCommand.js

* Make comments more relevant.
* Remove commented-out code.
* Remove unused variables.

Change-Id: I39e6b740551460b26fbc6afd6fbc10d9f5436c79
---
M modules/ext.LanguageToolCommand.js
1 file changed, 3 insertions(+), 13 deletions(-)

Approvals:
  Ankita-ks: Verified; Looks good to me, approved



diff --git a/modules/ext.LanguageToolCommand.js 
b/modules/ext.LanguageToolCommand.js
index f235d80..4db7048 100644
--- a/modules/ext.LanguageToolCommand.js
+++ b/modules/ext.LanguageToolCommand.js
@@ -1,13 +1,6 @@
-
 ( function () {
-/*!
- * VisualEditor UserInterface HistoryCommand class.
- *
- * @copyright 2011-2015 VisualEditor Team and others; see 
http://ve.mit-license.org
- */
-
 /**
- * UserInterface history command.
+ * UserInterface LanguageTool command.
  *
  * @class
  * @extends ve.ui.Command
@@ -31,13 +24,10 @@
  * @inheritdoc
  */
 mw.languageToolCommand.prototype.isExecutable = function ( fragment ) {
-       var surface = fragment.getSurface();
-
        // Parent method
-       return mw.languageToolCommand.super.prototype.isExecutable.apply( this, 
arguments ) 
-               // && surface[this.check].call( surface );
+       return mw.languageToolCommand.super.prototype.isExecutable.apply( this, 
arguments );
 };
 
 /* Registration */
 ve.ui.commandRegistry.register( new mw.languageToolCommand( 'send', 'send' ) );
-}() );
\ No newline at end of file
+}() );

-- 
To view, visit https://gerrit.wikimedia.org/r/222742
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I39e6b740551460b26fbc6afd6fbc10d9f5436c79
Gerrit-PatchSet: 3
Gerrit-Project: mediawiki/extensions/LanguageTool
Gerrit-Branch: master
Gerrit-Owner: Amire80 <[email protected]>
Gerrit-Reviewer: Ankita-ks <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to