#6389 closed Bug (invalid)
Crash if destroyed too soon after creation
Reported by: | Dinu | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | General | Version: | 3.4.1 |
Keywords: | Cc: |
Description
Only tested using jQuery connector: If destroy() is called before all initialisation has finished, the editor crashes.
Change History (3)
comment:1 Changed 14 years ago by
Resolution: | → invalid |
---|---|
Status: | new → closed |
comment:2 Changed 14 years ago by
What I have now is on instanceReady disable the editor close for 5 seconds. Is there any better way to do this than consider anything between 5 seconds and 30 minutes as a good destroy timeout?
comment:3 Changed 14 years ago by
Ok, I tracked it down... it's actually due to #6387; with that fixed (or autoGrow disabled) the editor can be destroyed with setTimeout(editor.destroy,0) on instanceReady.
We're not indented to be bullet proof in this sense, developers should have valid control over it.