Changeset 1226 for trunk


Ignore:
Timestamp:
11/10/09 13:07:31 (9 years ago)
Author:
gogo
Message:

Ticket #1282

Opera losing it's events when designMode turned on causing status bar to not update amongst other things.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/XinhaCore.js

    r1223 r1226  
    31913191        this._doc.designMode = 'on'; 
    31923192      } 
     3193 
     3194      // Opera loses some of it's event listeners when the designMode is set to on. 
     3195          // the true just shortcuts the method to only set some listeners. 
     3196      if(Xinha.is_opera) this.setEditorEvents(true); 
     3197 
    31933198    } catch (ex) {} 
    31943199  } 
     
    34953500 * @private 
    34963501 */ 
    3497 Xinha.prototype.setEditorEvents = function() 
     3502Xinha.prototype.setEditorEvents = function(resetting_events_for_opera) 
    34983503{ 
    34993504  var editor=this; 
     
    35033508    function() 
    35043509    { 
     3510      if(!resetting_events_for_opera) { 
    35053511      // if we have multiple editors some bug in Mozilla makes some lose editing ability 
    35063512      Xinha._addEvents( 
     
    35313537        ); 
    35323538      } 
     3539      } 
    35333540 
    35343541      // intercept some events; for updating the toolbar & keyboard handlers 
     
    35413548        } 
    35423549      ); 
     3550      if(resetting_events_for_opera) return; 
    35433551 
    35443552      // FIXME - this needs to be cleaned up and use editor.firePluginEvent 
     
    44704478      } 
    44714479 
    4472       this._statusBarTree.innerHTML = Xinha._lc("Path") + ": "; // clear 
     4480      this._statusBarTree.innerHTML = ' '; 
     4481      this._statusBarTree.appendChild(document.createTextNode(Xinha._lc("Path") + ": "));  
    44734482      for ( var i = ancestors.length; --i >= 0; ) 
    44744483      { 
Note: See TracChangeset for help on using the changeset viewer.