Changeset 13263

Show
Ignore:
Timestamp:
04/04/08 10:47:57 (9 months ago)
Author:
liucougar
Message:

refs #6372: fixed a regression introduced in r13257 (when user press enter twice in a list, an error occurs)

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • dijit/trunk/_editor/plugins/EnterKeyHandling.js

    r13257 r13263  
    8181                if(this._pressedEnterInBlock){ 
    8282                        //the new created is the original current P, so we have previousSibling below 
    83                         this.removeTrailingBr(this._pressedEnterInBlock.previousSibling); 
     83                        if(this._pressedEnterInBlock.previousSibling){ 
     84                            this.removeTrailingBr(this._pressedEnterInBlock.previousSibling); 
     85                        } 
    8486                        delete this._pressedEnterInBlock; 
    8587                }