Changeset 449

Show
Ignore:
Timestamp:
2007-07-15 00:38:13 (17 months ago)
Author:
fredck
Message:

Small changes to [445].

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • FCKeditor/trunk/editor/_source/classes/fckeditingarea.js

    r445 r449  
    220220                        // In Firefox if the iframe is initially hidden it can't be set to designMode and it raises an exception 
    221221                        // So we set up a DOM Mutation event Listener on the HTML, as it will raise several events when the document is  visible again 
    222                         FCKTools.AddEventListener( this.Document, 'DOMAttrModified', FCKEditingArea_Document_AttributeNodeModified ) ; 
     222                        FCKTools.AddEventListener( oDoc, 'DOMAttrModified', FCKEditingArea_Document_AttributeNodeModified ) ; 
    223223                } 
    224224 
     
    230230function FCKEditingArea_Document_AttributeNodeModified( evt ) 
    231231{ 
    232         var oDoc = evt.currentTarget ; 
    233         var oWindow = oDoc.defaultView ; 
    234         var editingArea = oWindow._FCKEditingArea ; 
     232        var editingArea = evt.currentTarget.defaultView._FCKEditingArea ; 
    235233         
    236234        // We want to run our function after the events no longer fire, so we can know that it's a stable situation 
    237235        if ( editingArea._timer ) 
    238         { 
    239                 oWindow.clearTimeout( editingArea._timer ) ; 
    240                 delete editingArea._timer ; 
    241         } 
    242  
    243         editingArea._timer = FCKTools.SetTimeout( editingArea._MakeEditableByMutation, 1000, editingArea ) ;     
     236                window.clearTimeout( editingArea._timer ) ; 
     237 
     238        editingArea._timer = FCKTools.SetTimeout( FCKEditingArea_MakeEditableByMutation, 1000, editingArea ) ;   
    244239} 
    245240 
    246241// This function ideally should be called after the document is visible, it does clean up of the 
    247242// mutation tracking and tries again to make the area editable. 
    248 FCKEditingArea.prototype._MakeEditableByMutation = function() 
     243function FCKEditingArea_MakeEditableByMutation() 
    249244{ 
    250245        // Clean up