Changeset 13669

Show
Ignore:
Timestamp:
05/10/08 09:27:33 (8 months ago)
Author:
peller
Message:

improved patch from jgarfield for deferred setValue on IE. 1.1 branch. Refs #6376

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/1.1/dijit/_editor/RichText.js

    r13577 r13669  
    12321232                // summary: 
    12331233                //              this function set the content. No undo history is preserved 
     1234 
     1235                if(!this.isLoaded){ 
     1236                        // try again after the editor is finished loading 
     1237                        this.onLoadDeferred.addCallback(dojo.hitch(this, function(){ 
     1238                                this.setValue(html); 
     1239                        })); 
     1240                        return; 
     1241                } 
     1242 
    12341243                if(this.textarea && (this.isClosed || !this.isLoaded)){ 
    12351244                        this.textarea.value=html; 
     
    12391248                        node.innerHTML = html; 
    12401249                        this._preDomFilterContent(node); 
    1241                 } 
    1242  
    1243                 if(!this.isLoaded){ 
    1244                         // try again after the editor is finished loading 
    1245                         this.onLoadDeferred.addCallback(dojo.hitch(this, function(){ 
    1246                                 this.setValue(html); 
    1247                         })); 
    12481250                } 
    12491251