Opened 8 years ago

Closed 8 years ago

#13808 closed defect (fixed)

dijit.Editor disabled just before it is deleted causes javascript error

Reported by: David Moore Owned by: bill
Priority: high Milestone: 1.7
Component: Editor Version: 1.6.1
Keywords: Cc:
Blocked By: Blocking:

Description

If you disable a dijit.Editor just before you delete it, the following code in dijit/_editor/RichText.js causes an error:

			if(preventIEfocus){
				var _this = this;
				setTimeout(function(){ _this.editNode.unselectable = "off"; }, 0);
			}

as, when the timeout is triggered, _this.editNode no longer exists. It should check that _this.editNode exists before trying to set unselectable on it.

Change History (2)

comment:1 Changed 8 years ago by bill

Milestone: tbd1.7
Owner: set to bill
Status: newassigned

comment:2 Changed 8 years ago by bill

Resolution: fixed
Status: assignedclosed

In [26534]:

guard against when Editor is destroyed before timeout fires, fixes #13808 !strict

Note: See TracTickets for help on using tickets.