Changeset 629


Ignore:
Timestamp:
01/03/07 18:42:28 (11 years ago)
Author:
ray
Message:

Ticket #899: JSlint proposed improvements in the Javascript

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/htmlarea.js

    r628 r629  
    39033903    if( range.htmlText ) 
    39043904    { 
    3905       return range.htmlText 
     3905      return range.htmlText; 
    39063906    } 
    39073907    else if(range.length >= 1) 
     
    46404640                  { 
    46414641                    // @fixme: Alert, sometimes m is undefined becase the url is not an url anymore (was www.url.com and become for example www.url) 
    4642                     var m = txtNode.data.match(HTMLArea.RE_url); 
     4642                    m = txtNode.data.match(HTMLArea.RE_url); 
    46434643                    a.href = (m[1] ? m[1] : 'http://') + m[2]; 
    46444644                    // @fixme: why the hell do another timeout is started ? 
     
    62476247    content = data; 
    62486248  } 
    6249   else if(data != null) 
     6249  else if(typeof data == "object") 
    62506250  { 
    62516251    for ( var i in data ) 
     
    64586458{ 
    64596459  var ret; 
    6460   if (typeof string == 'string') var m = string.match(/\$(.*?)=(.*?)\$/g); 
     6460  var m = null; 
     6461  if (typeof string == 'string') m = string.match(/\$(.*?)=(.*?)\$/g); 
    64616462  if (m)  
    64626463  { 
Note: See TracChangeset for help on using the changeset viewer.