[TASK] Fix CGL violations against SemicolonSpacing in JS files
authorAndy Grunwald <andygrunwald@gmail.com>
Mon, 2 Jul 2012 16:32:37 +0000 (18:32 +0200)
committerChristian Kuhn <lolli@schwarzbu.ch>
Mon, 2 Jul 2012 18:19:11 +0000 (20:19 +0200)
There are some violations against the sniff
Squiz.WhiteSpace.SemicolonSpacing in some javascript files.
This patch fixed the violations.

Change-Id: Ibc835f1d1ba9fe0d5c272a737fe9cd45dec63a64
Fixes: #38564
Releases: 6.0
Reviewed-on: http://review.typo3.org/12518
Reviewed-by: Wouter Wolters
Reviewed-by: Oliver Klee
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
t3lib/js/extjs/ux/ext.resizable.js
typo3/js/extjs/backendcontentiframe.js
typo3/js/tabmenu.js
typo3/sysext/rtehtmlarea/htmlarea/htmlarea.js
typo3/sysext/rtehtmlarea/htmlarea/plugins/CopyPaste/copy-paste.js
typo3/sysext/rtehtmlarea/htmlarea/plugins/TableOperations/table-operations.js
typo3/sysext/t3editor/res/jslib/ts_codecompletion/tscodecompletion.js

index 7b76ad5..952f8e1 100644 (file)
@@ -8,7 +8,7 @@
  * the Open Source LGPL 3.0 license.  Commercial use is permitted to the extent
  * that the code/component(s) do NOT become part of another Open Source or Commercially
  * licensed development library or toolkit without explicit permission.
- * 
+ *
  * License details: http://www.gnu.org/licenses/lgpl.html
  *
  * @class Ext.ux.EventZone
@@ -321,7 +321,7 @@ Ext.Resizable = function(el, config){
     this.proxy.enableDisplayMode('block');
 
     Ext.apply(this, config);
-    
+
     if(this.pinned){
         this.disableTrackOver = true;
         this.el.addClass('x-resizable-pinned');
@@ -350,22 +350,22 @@ Ext.Resizable = function(el, config){
     }
     // legacy
     this.corner = this.southeast;
-    
+
     if(this.handles.indexOf('n') != -1 || this.handles.indexOf('w') != -1){
         this.updateBox = true;
-    }   
+    }
     this.activeHandle = null;
 
     if(this.adjustments == 'auto'){
         var hw = this.west, he = this.east, hn = this.north, hs = this.south;
         this.adjustments = [
             (he.el ? -he.el.getWidth() : 0) + (hw.el ? -hw.el.getWidth() : 0),
-            (hn.el ? -hn.el.getHeight() : 0) + (hs.el ? -hs.el.getHeight() : 0) -1 
+            (hn.el ? -hn.el.getHeight() : 0) + (hs.el ? -hs.el.getHeight() : 0) -1
         ];
     }
 
     if(this.draggable){
-        this.dd = this.dynamic ? 
+        this.dd = this.dynamic ?
             this.el.initDD(null) : this.el.initDDProxy(null, {dragElId: this.proxy.id});
         this.dd.setHandleElId(this.el.id);
     }
@@ -388,7 +388,7 @@ Ext.Resizable = function(el, config){
          */
         'resize'
     );
-    
+
     if(this.width !== null && this.height !== null){
         this.resizeTo(this.width, this.height);
     }
@@ -434,7 +434,7 @@ Ext.extend(Ext.Resizable, Ext.util.Observable, {
     enabled : true,
     /**
      * @property enabled Writable. False if resizing is disabled.
-     * @type Boolean 
+     * @type Boolean
      */
     /**
      * @cfg {String} handles String consisting of the resize handles to display (defaults to undefined).
@@ -501,7 +501,7 @@ Ext.extend(Ext.Resizable, Ext.util.Observable, {
      * @cfg {Ext.lib.Region} resizeRegion Constrain the resize to a particular region
      */
 
-    
+
     /**
      * Perform a manual resize and fires the 'resize' event.
      * @param {Number} width
@@ -647,11 +647,11 @@ new Ext.Panel({
     // private
     constrain : function(v, diff, m, mx){
         if(v - diff < m){
-            diff = v - m;    
+            diff = v - m;
         }else if(v - diff > mx){
-            diff = v - mx; 
+            diff = v - mx;
         }
-        return diff;                
+        return diff;
     },
 
     // private
@@ -666,15 +666,15 @@ new Ext.Panel({
             //var curXY = this.startPoint;
             var curSize = this.curSize || this.startBox,
                 x = this.startBox.x, y = this.startBox.y,
-                ox = x, 
+                ox = x,
                 oy = y,
-                w = curSize.width, 
+                w = curSize.width,
                 h = curSize.height,
-                ow = w, 
+                ow = w,
                 oh = h,
-                mw = this.minWidth, 
+                mw = this.minWidth,
                 mh = this.minHeight,
-                mxw = this.maxWidth, 
+                mxw = this.maxWidth,
                 mxh = this.maxHeight,
                 wi = this.widthIncrement,
                 hi = this.heightIncrement,
@@ -684,10 +684,10 @@ new Ext.Panel({
                 pos = this.activeHandle.position,
                 tw,
                 th;
-            
+
             switch(pos){
                 case 'east':
-                    w += diffX; 
+                    w += diffX;
                     w = Math.min(Math.max(mw, w), mxw);
                     break;
                 case 'south':
@@ -695,7 +695,7 @@ new Ext.Panel({
                     h = Math.min(Math.max(mh, h), mxh);
                     break;
                 case 'southeast':
-                    w += diffX; 
+                    w += diffX;
                     h += diffY;
                     w = Math.min(Math.max(mw, w), mxw);
                     h = Math.min(Math.max(mh, h), mxh);
@@ -711,7 +711,7 @@ new Ext.Panel({
                     w -= diffX;
                     break;
                 case 'northeast':
-                    w += diffX; 
+                    w += diffX;
                     w = Math.min(Math.max(mw, w), mxw);
                     diffY = this.constrain(h, diffY, mh, mxh);
                     y += diffY;
@@ -733,7 +733,7 @@ new Ext.Panel({
                     w -= diffX;
                     break;
             }
-            
+
             var sw = this.snap(w, wi, mw);
             var sh = this.snap(h, hi, mh);
             if(sw != w || sh != h){
@@ -758,7 +758,7 @@ new Ext.Panel({
                 w = sw;
                 h = sh;
             }
-            
+
             if(this.preserveRatio){
                 switch(pos){
                     case 'southeast':
@@ -809,7 +809,7 @@ new Ext.Panel({
                         y += th - h;
                         x += tw - w;
                         break;
-                        
+
                 }
             }
             this.proxy.setBounds(x, y, w, h);
@@ -833,7 +833,7 @@ new Ext.Panel({
             Ext.getBody().removeClass('ux-resizable-handle-' + handle.position);
         }
     },
-    
+
     /**
      * Returns the element this component is bound to.
      * @return {Ext.Element}
@@ -843,14 +843,14 @@ new Ext.Panel({
     },
 
     /**
-     * Destroys this resizable. If the element was wrapped and 
+     * Destroys this resizable. If the element was wrapped and
      * removeEl is not true then the element remains.
      * @param {Boolean} removeEl (optional) true to remove the element from the DOM
      */
     destroy : function(removeEl){
         Ext.destroy(this.dd, this.proxy);
         this.proxy = null;
-        
+
         var ps = Ext.Resizable.positions;
         for(var k in ps){
             if(typeof ps[k] != 'function' && this[ps[k]]){
@@ -915,7 +915,7 @@ Ext.Resizable.Handle.prototype = {
 
     // private
     afterResize : function(rz){
-        // do nothing    
+        // do nothing
     },
     // private
     onMouseDown : function(e){
@@ -946,12 +946,12 @@ Ext.Resizable.Handle.prototype = {
 * the Open Source LGPL 3.0 license.  Commercial use is permitted to the extent
 * that the code/component(s) do NOT become part of another Open Source or Commercially
 * licensed development library or toolkit without explicit permission.
-* 
+*
 * License details: http://www.gnu.org/licenses/lgpl.html
 *
 */
 Ext.ux.elasticTextArea = function(){
-    
+
     var defaultConfig = function(){
         return {
             minHeight : 0
@@ -959,28 +959,28 @@ Ext.ux.elasticTextArea = function(){
             ,growBy: 12
         }
     }
-    
+
     var processOptions = function(config){
         var o = defaultConfig();
         var options = {};
         Ext.apply(options, config, o);
-        
-        return options ;
+
+        return options;
     }
-    
+
     return {
         div : null
         ,applyTo: function(elementId, options){
-        
+
             var el = Ext.get(elementId);
             var width = el.getWidth();
             var height = el.getHeight();
-            
+
             var styles = el.getStyles('padding-top', 'padding-bottom', 'padding-left', 'padding-right', 'line-height', 'font-size', 'font-family', 'font-weight');
 
             if(! this.div){
                 var options = processOptions(options);
-                
+
                 this.div = Ext.DomHelper.append(Ext.getBody() || document.body, {
                     'id':elementId + '-preview-div'
                     ,'tag' : 'div'
@@ -988,7 +988,7 @@ Ext.ux.elasticTextArea = function(){
                     ,'style' : 'position: absolute; top: -100000px; left: -100000px;'
                 }, true)
                 Ext.DomHelper.applyStyles(this.div, styles);
-                
+
                 el.on('keyup', function() {
                         this.applyTo(elementId, options);
                 }, this);
@@ -996,13 +996,13 @@ Ext.ux.elasticTextArea = function(){
             this.div.setWidth(parseInt(el.getStyle('width')));
             //replace \n with <br>&nbsp; so that the enter key can trigger and height increase
             //but first remove all previous entries, so that the height mesurement can be as accurate as possible
-            this.div.update( 
+            this.div.update(
                     el.dom.value.replace(/<br \/>&nbsp;/, '<br />')
                                 .replace(/<|>/g, ' ')
                                 .replace(/&/g,"&amp;")
-                                .replace(/\n/g, '<br />&nbsp;') 
+                                .replace(/\n/g, '<br />&nbsp;')
                     );
-            
+
                        var growBy = parseInt(el.getStyle('line-height'));
                        growBy = growBy ? growBy + 1 : 1;
                        if (growBy === 1) {
@@ -1010,16 +1010,16 @@ Ext.ux.elasticTextArea = function(){
                        }
                        var textHeight = this.div.getHeight();
                        textHeight = textHeight ? textHeight + growBy : growBy;
-            
+
             if ( (textHeight > options.maxHeight ) && (options.maxHeight > 0) ){
-                textHeight = options.maxHeight ;
+                textHeight = options.maxHeight;
                 el.setStyle('overflow', 'auto');
             }
             if ( (textHeight < options.minHeight ) && (options.minHeight > 0) ) {
-                textHeight = options.minHeight ;
+                textHeight = options.minHeight;
                 el.setStyle('overflow', 'auto');
             }
-            
+
             el.setHeight(textHeight , true);
         }
     }
index a20cdd9..d11c77d 100644 (file)
@@ -62,7 +62,6 @@ TYPO3.backendContentIframePanel = Ext.extend(TYPO3.iframePanel ,{
                                return this.url;
                        }
                }
-               ;
        }
 });
 Ext.reg('backendContentIframePanel', TYPO3.backendContentIframePanel);
\ No newline at end of file
index a5f2d0d..d036b49 100644 (file)
@@ -32,7 +32,7 @@ if (!top.DTM_currentTabs) {
 function DTM_activate(idBase,index,doToogle) {
                // Hiding all:
        if (DTM_array[idBase]) {
-               for(var cnt = 0; cnt < DTM_array[idBase].length ; cnt++) {
+               for(var cnt = 0; cnt < DTM_array[idBase].length; cnt++) {
                        if (DTM_array[idBase][cnt] !== idBase + '-' + index) {
                                document.getElementById(DTM_array[idBase][cnt]+'-DIV').style.display = 'none';
                                // Only Overriding when Tab not disabled
index 90d47a8..777df02 100644 (file)
@@ -995,7 +995,7 @@ HTMLArea.Iframe = Ext.extend(Ext.BoxComponent, {
        /*
         * Create one of each of the configured custom tags so they are properly parsed by the walker when using IE
         * See: http://en.wikipedia.org/wiki/HTML5_Shiv
-        * 
+        *
         * @return      void
         */
        initializeCustomTags: function () {
@@ -2127,7 +2127,7 @@ HTMLArea.Editor = Ext.extend(Ext.util.Observable, {
        /*
         * Determine whether the editor document is currently contentEditable
         *
-        * @return      boolean         true, if the document is contentEditable        
+        * @return      boolean         true, if the document is contentEditable
         */
        isEditable: function () {
                return Ext.isIE ? this.document.body.contentEditable : (this.document.designMode === 'on');
@@ -2862,7 +2862,7 @@ Ext.apply(HTMLArea.util, {
                str = str.replace(/&lt;/g, '<').replace(/&gt;/g, '>');
                str = str.replace(/&nbsp;/g, '\xA0'); // Decimal 160, non-breaking-space
                str = str.replace(/&quot;/g, '\x22');
-               str = str.replace(/&#39;/g, "'") ;
+               str = str.replace(/&#39;/g, "'");
                str = str.replace(/&amp;/g, '&');
                return str;
        },
@@ -3398,7 +3398,7 @@ HTMLArea.DOM.Walker = Ext.extend(HTMLArea.DOM.Walker, {
                var attributes = node.attributes;
                var filterededAttributes = [];
                var attribute, attributeName, attributeValue;
-               for (var i = attributes.length; --i >= 0 ;) {
+               for (var i = attributes.length; --i >= 0;) {
                        attribute = attributes.item(i);
                        attributeName = attribute.nodeName.toLowerCase();
                        attributeValue = attribute.nodeValue;
@@ -3539,7 +3539,7 @@ HTMLArea.DOM.Selection = Ext.extend(HTMLArea.DOM.Selection, {
         * Get the current selection object
         *
         * @return      object          this
-        */             
+        */
        get: function () {
                this.editor.focus();
                this.selection = this.window.getSelection ? this.window.getSelection() : this.document.selection;
@@ -3809,7 +3809,7 @@ HTMLArea.DOM.Selection = Ext.extend(HTMLArea.DOM.Selection, {
        /*
         * Get the deepest node that contains both endpoints of the current selection.
         *
-        * @return      object          the deepest node that contains both endpoints of the current selection. 
+        * @return      object          the deepest node that contains both endpoints of the current selection.
         */
        getParentElement: function () {
                var parentElement,
@@ -4113,7 +4113,7 @@ HTMLArea.DOM.Selection = Ext.extend(HTMLArea.DOM.Selection, {
         * Execute some native execCommand command on the current selection
         *
         * @param       string          cmdID: the command name or id
-        * @param       object          UI: 
+        * @param       object          UI:
         * @param       object          param:
         *
         * @return      boolean         false
@@ -4217,14 +4217,14 @@ HTMLArea.DOM.Selection = Ext.extend(HTMLArea.DOM.Selection, {
                                        }
                                }
                        }, 10);
-                       return false;   
+                       return false;
                }
        },
        /*
         * Detect emails and urls as they are typed in non-IE browsers
         * Borrowed from Xinha (is not htmlArea) - http://xinha.gogo.co.nz/
         *
-        * @param       object          event: the ExtJS key event 
+        * @param       object          event: the ExtJS key event
         *
         * @return      void
         */
@@ -4243,7 +4243,7 @@ HTMLArea.DOM.Selection = Ext.extend(HTMLArea.DOM.Selection, {
                                a.appendChild(textNode);
                                selection.collapse(rightText, 0);
                                rightText.parentNode.normalize();
-               
+
                                editor.unLink = function() {
                                        var t = a.firstChild;
                                        a.removeChild(t);
@@ -4253,7 +4253,7 @@ HTMLArea.DOM.Selection = Ext.extend(HTMLArea.DOM.Selection, {
                                        editor.unLink = null;
                                        editor.unlinkOnUndo = false;
                                };
-               
+
                                editor.unlinkOnUndo = true;
                                return a;
                        };
@@ -4746,7 +4746,7 @@ HTMLArea.DOM.Node = Ext.extend(HTMLArea.DOM.Node, {
                                var rangeEnd = range.duplicate();
                                rangeEnd.collapse(true);
                                var newRange = this.selection.createRange();
-                               
+
                                var parentEnd = rangeEnd.parentElement();
                                var upperParentStart = parentStart;
                                if (parentStart !== parent) {
@@ -4754,7 +4754,7 @@ HTMLArea.DOM.Node = Ext.extend(HTMLArea.DOM.Node, {
                                                upperParentStart = upperParentStart.parentNode;
                                        }
                                }
-                               
+
                                element.innerHTML = range.htmlText;
                                        // IE eats spaces on the start boundary
                                if (range.htmlText.charAt(0) === '\x20') {
@@ -4892,7 +4892,7 @@ HTMLArea.isBlockElement = HTMLArea.DOM.isBlockElement;
 HTMLArea.needsClosingTag = HTMLArea.DOM.needsClosingTag;
 /*
  * Get the current selection object
- * 
+ *
  ***********************************************
  * THIS FUNCTION IS DEPRECATED AS OF TYPO3 4.7 *
  ***********************************************
index 515be59..177ab35 100644 (file)
@@ -396,7 +396,7 @@ HTMLArea.CopyPaste = Ext.extend(HTMLArea.Plugin, {
                                row = firstRow;
                                while (row) {
                                        cells = [];
-                                       for (var i = 0, n = row.cells.length; i < n ; ++i) {
+                                       for (var i = 0, n = row.cells.length; i < n; ++i) {
                                                cells.push(row.cells[i].innerHTML);
                                                if (operation === 'Cut') {
                                                        row.cells[i].innerHTML = '';
index 7279298..c4d0265 100644 (file)
@@ -36,7 +36,7 @@ HTMLArea.TableOperations = Ext.extend(HTMLArea.Plugin, {
         * This function gets called by the class constructor
         */
        configurePlugin: function (editor) {
-               
+
                this.classesUrl = this.editorConfiguration.classesUrl;
                this.buttonsConfiguration = this.editorConfiguration.buttons;
                this.disableEnterParagraphs = this.buttonsConfiguration.table ? this.buttonsConfiguration.table.disableEnterParagraphs : false;
@@ -51,7 +51,7 @@ HTMLArea.TableOperations = Ext.extend(HTMLArea.Plugin, {
                                this.floatRight = (floatConfiguration.right && floatConfiguration.right.useClass) ? floatConfiguration.right.useClass : "float-right";
                                this.floatDefault = (floatConfiguration.defaultValue) ?  floatConfiguration.defaultValue : "not set";
                        }
-                       if (this.buttonsConfiguration.table.properties.headers && this.buttonsConfiguration.table.properties.headers.both 
+                       if (this.buttonsConfiguration.table.properties.headers && this.buttonsConfiguration.table.properties.headers.both
                                        && this.buttonsConfiguration.table.properties.headers.both.useHeaderClass) {
                                this.useHeaderClass = this.buttonsConfiguration.table.properties.headers.both.useHeaderClass;
                        }
@@ -98,7 +98,7 @@ HTMLArea.TableOperations = Ext.extend(HTMLArea.Plugin, {
                        this.registerButton(buttonConfiguration);
                }
                return true;
-        }, 
+        },
        /*
         * The list of buttons added by this plugin
         */
@@ -681,11 +681,11 @@ HTMLArea.TableOperations = Ext.extend(HTMLArea.Plugin, {
                        // Could be a button or its hotkey
                var buttonId = this.translateHotKey(id);
                buttonId = buttonId ? buttonId : id;
-               
+
                var mozbr = !Ext.isIE ? "<br />" : "";
                var tableParts = ["tfoot", "thead", "tbody"];
                var tablePartsIndex = { tfoot : 0, thead : 1, tbody : 2 };
-               
+
                // helper function that clears the content in a table row
                function clearRow(tr) {
                        var tds = tr.getElementsByTagName("td");
@@ -701,7 +701,7 @@ HTMLArea.TableOperations = Ext.extend(HTMLArea.Plugin, {
                                td.innerHTML = mozbr;
                        }
                };
-       
+
                function splitRow(td) {
                        var n = parseInt("" + td.rowSpan);
                        var colSpan = td.colSpan;
@@ -721,7 +721,7 @@ HTMLArea.TableOperations = Ext.extend(HTMLArea.Plugin, {
                                tr.insertBefore(otd, tr.cells[index]);
                        }
                };
-       
+
                function splitCol(td) {
                        var nc = parseInt("" + td.colSpan);
                        var nodeName = td.nodeName.toLowerCase();
@@ -735,7 +735,7 @@ HTMLArea.TableOperations = Ext.extend(HTMLArea.Plugin, {
                                tr.insertBefore(otd, ref);
                        }
                };
-       
+
                function splitCell(td) {
                        var nc = parseInt("" + td.colSpan);
                        splitCol(td);
@@ -745,7 +745,7 @@ HTMLArea.TableOperations = Ext.extend(HTMLArea.Plugin, {
                                splitRow(cells[index++]);
                        }
                };
-       
+
                function selectNextNode(el) {
                        var node = el.nextSibling;
                        while (node && node.nodeType != 1) {
@@ -760,7 +760,7 @@ HTMLArea.TableOperations = Ext.extend(HTMLArea.Plugin, {
                        if (!node) node = el.parentNode;
                        editor.getSelection().selectNodeContents(node);
                };
-               
+
                function getSelectedCells(sel) {
                        var cell, range, i = 0, cells = [];
                        try {
@@ -774,7 +774,7 @@ HTMLArea.TableOperations = Ext.extend(HTMLArea.Plugin, {
                        }
                        return cells;
                };
-               
+
                function deleteEmptyTable(table) {
                        var lastPart = true;
                        for (var j = tableParts.length; --j >= 0;) {
@@ -786,7 +786,7 @@ HTMLArea.TableOperations = Ext.extend(HTMLArea.Plugin, {
                                table.parentNode.removeChild(table);
                        }
                };
-               
+
                function computeCellIndexes(table) {
                        var matrix = [];
                        var lookup = {};
@@ -825,11 +825,11 @@ HTMLArea.TableOperations = Ext.extend(HTMLArea.Plugin, {
                        }
                        return lookup;
                };
-               
+
                function getActualCellIndex(cell, lookup) {
                        return lookup[cell.parentNode.parentNode.nodeName.toLowerCase()+"-"+cell.parentNode.rowIndex+"-"+cell.cellIndex];
                };
-               
+
                switch (buttonId) {
                        // ROWS
                    case "TO-row-insert-above":
@@ -871,7 +871,7 @@ HTMLArea.TableOperations = Ext.extend(HTMLArea.Plugin, {
                                splitRow(cell);
                        }
                        break;
-       
+
                        // COLUMNS
                    case "TO-col-insert-before":
                    case "TO-col-insert-after":
@@ -952,7 +952,7 @@ HTMLArea.TableOperations = Ext.extend(HTMLArea.Plugin, {
                        }
                        this.reStyleTable(table);
                        break;
-       
+
                        // CELLS
                    case "TO-cell-split":
                        var cell = this.editor.getSelection().getFirstAncestorOfType(['td', 'th']);
@@ -1103,7 +1103,7 @@ HTMLArea.TableOperations = Ext.extend(HTMLArea.Plugin, {
                        }
                        this.reStyleTable(table);
                        break;
-                       
+
                        // CREATION AND PROPERTIES
                    case "InsertTable":
                    case "TO-table-prop":
@@ -1502,7 +1502,7 @@ HTMLArea.TableOperations = Ext.extend(HTMLArea.Plugin, {
                        if (thead) {
                                var rows = thead.rows;
                                if (rows.length) {
-                                       for (var i = rows.length; --i >= 0 ;) {
+                                       for (var i = rows.length; --i >= 0;) {
                                                this.remapRowCells(rows[i], "td");
                                                if (tbody.rows.length) {
                                                        tbody.insertBefore(rows[i], tbody.rows[0]);
@@ -1530,7 +1530,7 @@ HTMLArea.TableOperations = Ext.extend(HTMLArea.Plugin, {
                }
                if (headers == "left" || headers == "both") {
                        var rows = tbody.rows;
-                       for (var i = rows.length; --i >= 0 ;) {
+                       for (var i = rows.length; --i >= 0;) {
                                if (i || rows[i] == firstRow) {
                                        if (rows[i].cells[0].nodeName.toLowerCase() != "th") {
                                                var th = this.remapCell(rows[i].cells[0], "th");
@@ -1540,7 +1540,7 @@ HTMLArea.TableOperations = Ext.extend(HTMLArea.Plugin, {
                        }
                } else {
                        var rows = tbody.rows;
-                       for (var i = rows.length; --i >= 0 ;) {
+                       for (var i = rows.length; --i >= 0;) {
                                if (rows[i].cells[0].nodeName.toLowerCase() != "td") {
                                        rows[i].cells[0].scope = "";
                                        var td = this.remapCell(rows[i].cells[0], "td");
@@ -1549,7 +1549,7 @@ HTMLArea.TableOperations = Ext.extend(HTMLArea.Plugin, {
                }
                this.reStyleTable(table);
        },
-       
+
        /*
         * This function remaps the given cell to the specified node name
         */
@@ -1582,7 +1582,7 @@ HTMLArea.TableOperations = Ext.extend(HTMLArea.Plugin, {
                                newCell.removeAttribute("className");
                        }
                }
-               
+
                if (this.tags && this.tags[nodeName] && this.tags[nodeName].allowedClasses) {
                        if (newCell.className && /\S/.test(newCell.className)) {
                                var allowedClasses = this.tags[nodeName].allowedClasses;
@@ -1596,18 +1596,18 @@ HTMLArea.TableOperations = Ext.extend(HTMLArea.Plugin, {
                }
                return newCell;
        },
-       
+
        remapRowCells : function (row, toType) {
                var cells = row.cells;
                if (toType === "th") {
-                       for (var i = cells.length; --i >= 0 ;) {
+                       for (var i = cells.length; --i >= 0;) {
                                if (cells[i].nodeName.toLowerCase() != "th") {
                                        var th = this.remapCell(cells[i], "th");
                                        th.scope = "col";
                                }
                        }
                } else {
-                       for (var i = cells.length; --i >= 0 ;) {
+                       for (var i = cells.length; --i >= 0;) {
                                if (cells[i].nodeName.toLowerCase() != "td") {
                                        var td = this.remapCell(cells[i], "td");
                                        td.scope = "";
@@ -1615,7 +1615,7 @@ HTMLArea.TableOperations = Ext.extend(HTMLArea.Plugin, {
                        }
                }
        },
-       
+
        /*
         * This function applies the style properties found in params to the given element
         *
index 3b51c91..57264a6 100644 (file)
@@ -134,7 +134,7 @@ var TsCodeCompletion = function(codeMirror, outerdiv) {
         * instantiates all plugins and adds the instances to the plugin array
         */
        function loadPlugins() {
-               for (var i = 0; i < plugins.length ; i++) {
+               for (var i = 0; i < plugins.length; i++) {
                        var script = document.createElement('script');
                        script.setAttribute('type', 'text/javascript');
                        script.setAttribute('src', plugins[i].extpath+plugins[i].classpath);
@@ -186,7 +186,7 @@ var TsCodeCompletion = function(codeMirror, outerdiv) {
                        var childNode;
                        // if the childnode has a value and there is a parto of a reference operator ('<')
                        // and it does not look like a html tag ('>')
-                       if (childNodes[key].v && childNodes[key].v[0] == '<' 
+                       if (childNodes[key].v && childNodes[key].v[0] == '<'
                         && childNodes[key].v.indexOf('>') == -1 ) {
                                var path = childNodes[key].v.replace(/</,"").strip();
                                // if there are still whitespaces its no path
@@ -210,7 +210,7 @@ var TsCodeCompletion = function(codeMirror, outerdiv) {
                var path = path.split('.');
                var pathSeg;
                var i;
-               for ( i=0 ; i < path.length; i++) {
+               for ( i=0; i < path.length; i++) {
                        pathSeg = path[i];
                        if(extTree.c == null || extTree.c[pathSeg] == null) {
                                return null;
@@ -424,7 +424,7 @@ var TsCodeCompletion = function(codeMirror, outerdiv) {
                        // init styles
                        codeCompleteBox.style.overflowY = 'scroll';
                        codeCompleteBox.style.height = (options.ccWords * ($("cc_word_0").offsetHeight)) + 'px';
-                       
+
 
                        var leftpos = (Position.cumulativeOffset($$('.t3e_iframe_wrap')[index])[0] + Position.cumulativeOffset(cursorNode)[0] + cursorNode.offsetWidth) + 'px';
                        var toppos = (Position.cumulativeOffset(cursorNode)[1] + cursorNode.offsetHeight - Element.cumulativeScrollOffset(cursorNode)[1]) + 'px';
@@ -523,7 +523,7 @@ var TsCodeCompletion = function(codeMirror, outerdiv) {
                mousePos.x = event.clientX;
                mousePos.y = event.clientY;
        }
-       
+
        /**
         * highlights entry in codecomplete box by id
         * @param {int} id
@@ -537,7 +537,7 @@ var TsCodeCompletion = function(codeMirror, outerdiv) {
                        }
                }
        }
-       
+
        function highlightCurrWord(id,event) {
                // if it is a mouseover event
                if(event){
@@ -564,7 +564,7 @@ var TsCodeCompletion = function(codeMirror, outerdiv) {
        this.insertCurrWordAtCursor = function(){
                insertCurrWordAtCursor();
        }
-       
+
        /**
         * insert selected word into text from codecompletebox
         */
@@ -574,7 +574,7 @@ var TsCodeCompletion = function(codeMirror, outerdiv) {
                mirror.editor.highlightAtCursor();
                var select = mirror.win.select;
                var cursorNode = getCursorNode();
-               
+
                if (cursorNode.currentText
                        && cursorNode.currentText != '.'
                        && cursorNode.currentText.strip() != '' ) {