mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-29 00:30:44 +00:00
50f89a675e
This was removed in I0873d906c058203b83b8d4bbe5a4b274f05a26fd because I had fixed another cause of the recursion - this is still needed however because the following still happens: 1. Link inspector is opened away from a word, so it goes into a mode that will insert text based on the chosen target 2. The link inspector is closed, causing a context change when the new annotated text is inserted 3. The context change event triggers the link inspector to close, leading us back to step 2 4. Browser dies in infinite loop hell We may be able to fix this in a different way, like performing the document changes after the inspector has already closed by running it in a timeout. In any case, this works for now, and we can improve the design of this area of the code later on. Change-Id: I7f3c17dad08521bb1ae7c2a1e8a4e21e2c4ba210 |
||
---|---|---|
.. | ||
inspectors | ||
styles | ||
tools | ||
ve.ui.Context.js | ||
ve.ui.Frame.js | ||
ve.ui.Inspector.js | ||
ve.ui.InspectorFactory.js | ||
ve.ui.js | ||
ve.ui.Menu.js | ||
ve.ui.Tool.js | ||
ve.ui.Toolbar.js | ||
ve.ui.ToolFactory.js |