Revision: 8993
          
http://languagetool.svn.sourceforge.net/languagetool/?rev=8993&view=rev
Author:   dnaber
Date:     2013-01-13 12:28:30 +0000 (Sun, 13 Jan 2013)
Log Message:
-----------
small cleanup: remove unused code

Modified Paths:
--------------
    trunk/website/www/online-check/tiny_mce/plugins/atd-tinymce/editor_plugin.js
    trunk/website/www/online-check/tiny_mce/plugins/atd-tinymce/src/atd.core.js
    
trunk/website/www/online-check/tiny_mce/plugins/atd-tinymce/src/editor_plugin.js

Modified: 
trunk/website/www/online-check/tiny_mce/plugins/atd-tinymce/editor_plugin.js
===================================================================
--- 
trunk/website/www/online-check/tiny_mce/plugins/atd-tinymce/editor_plugin.js    
    2013-01-13 11:34:02 UTC (rev 8992)
+++ 
trunk/website/www/online-check/tiny_mce/plugins/atd-tinymce/editor_plugin.js    
    2013-01-13 12:28:30 UTC (rev 8993)
@@ -122,7 +122,7 @@
 /* 
  * code to manage highlighting of errors
  */
-AtDCore.prototype.markMyWords = function(container_nodes) {
+AtDCore.prototype.markMyWords = function() {
     var ed = tinyMCE.activeEditor;
     var textWithCursor = this.getPlainTextWithCursorMarker();
     var cursorPos = textWithCursor.indexOf("\ufeff");
@@ -427,14 +427,6 @@
          this.menuVisible = false;
          ed.core = core;
 
-         /* look at the atd_ignore variable and put that stuff into a hash */
-         var ignore = tinymce.util.Cookie.getHash('atd_ignore');
-
-         if (ignore == undefined)
-         {
-            ignore = {};
-         }
-
          /* add a command to request a document check and process the results. 
*/
          editor.addCommand('mceWritingImprovementTool', function(languageCode)
          {
@@ -569,7 +561,7 @@
          var ed  = this.editor;
          var se = ed.selection, b = se.getBookmark();
 
-         ed.core.markMyWords(ed.core.contents(this.editor.getBody()));
+         ed.core.markMyWords();
 
          se.moveToBookmark(b);
       },

Modified: 
trunk/website/www/online-check/tiny_mce/plugins/atd-tinymce/src/atd.core.js
===================================================================
--- trunk/website/www/online-check/tiny_mce/plugins/atd-tinymce/src/atd.core.js 
2013-01-13 11:34:02 UTC (rev 8992)
+++ trunk/website/www/online-check/tiny_mce/plugins/atd-tinymce/src/atd.core.js 
2013-01-13 12:28:30 UTC (rev 8993)
@@ -122,7 +122,7 @@
 /* 
  * code to manage highlighting of errors
  */
-AtDCore.prototype.markMyWords = function(container_nodes) {
+AtDCore.prototype.markMyWords = function() {
     var ed = tinyMCE.activeEditor;
     var textWithCursor = this.getPlainTextWithCursorMarker();
     var cursorPos = textWithCursor.indexOf("\ufeff");

Modified: 
trunk/website/www/online-check/tiny_mce/plugins/atd-tinymce/src/editor_plugin.js
===================================================================
--- 
trunk/website/www/online-check/tiny_mce/plugins/atd-tinymce/src/editor_plugin.js
    2013-01-13 11:34:02 UTC (rev 8992)
+++ 
trunk/website/www/online-check/tiny_mce/plugins/atd-tinymce/src/editor_plugin.js
    2013-01-13 12:28:30 UTC (rev 8993)
@@ -107,14 +107,6 @@
          this.menuVisible = false;
          ed.core = core;
 
-         /* look at the atd_ignore variable and put that stuff into a hash */
-         var ignore = tinymce.util.Cookie.getHash('atd_ignore');
-
-         if (ignore == undefined)
-         {
-            ignore = {};
-         }
-
          /* add a command to request a document check and process the results. 
*/
          editor.addCommand('mceWritingImprovementTool', function(languageCode)
          {
@@ -249,7 +241,7 @@
          var ed  = this.editor;
          var se = ed.selection, b = se.getBookmark();
 
-         ed.core.markMyWords(ed.core.contents(this.editor.getBody()));
+         ed.core.markMyWords();
 
          se.moveToBookmark(b);
       },

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. ON SALE this month only -- learn more at:
http://p.sf.net/sfu/learnmore_123012
_______________________________________________
Languagetool-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/languagetool-commits

Reply via email to