Changeset 1284


Ignore:
Timestamp:
11/18/10 17:33:11 (7 years ago)
Author:
ejucovy
Message:

#1530: fix DefinitionList? syntax error and lint warnings

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/plugins/DefinitionList/DefinitionList.js

    r1279 r1284  
    5656 
    5757DefinitionList.prototype.buttonPress = function(editor,button_id) { 
     58  var pe; 
     59  var dx; 
    5860  if (button_id=='dl') { //definition list 
    59     var pe = editor.getParentElement(); 
     61    pe = editor.getParentElement(); 
    6062    if( pe.tagName.toLowerCase() != 'body' ) { 
    6163      while (pe.parentNode.tagName.toLowerCase() != 'body') { 
     
    6365      } 
    6466    } 
    65     var dx = editor._doc.createElement(button_id); 
     67    dx = editor._doc.createElement(button_id); 
    6668    dx.innerHTML = ' '; 
    6769    if( pe.tagName.toLowerCase() == 'body' ) { 
     
    7375    } 
    7476  } else if ((button_id=='dt')||(button_id=='dd')) { //definition term or description 
    75     var pe = editor.getParentElement(); 
     77    pe = editor.getParentElement(); 
    7678    while (pe && (pe.nodeType == 1) && (pe.tagName.toLowerCase() != 'body')) { 
    7779      if(pe.tagName.toLowerCase() == 'dl') { 
    78         var dx = editor._doc.createElement(button_id); 
     80        dx = editor._doc.createElement(button_id); 
    7981        dx.innerHTML = ' '; 
    8082        pe.appendChild(dx); 
    8183        break; 
    8284      }else if((pe.tagName.toLowerCase() == 'dt')||(pe.tagName.toLowerCase() == 'dd')){ 
    83         var dx = editor._doc.createElement(button_id) 
     85        dx = editor._doc.createElement(button_id); 
    8486        dx.innerHTML = ' '; 
    8587        if(pe.parentNode.lastChild==pe) { 
Note: See TracChangeset for help on using the changeset viewer.