mediawiki-extensions-CodeMi.../resources/modules/ve-cm
Thiemo Kreuz a43984fc67 Simplify onSelect handler implementation
Optimizations for the code introduced in Ic403e0a:
* Skip this entirely when something is selected (as discussed
  in Ic403e0a).
* Use a combination of existing methods. I benchmarked these
  again. This approach is "significantly" slower compared to
  the custom code from before. However, "significantly" here
  means something like 1 nanosecond vs. 4 nanoseconds. Both
  is effectively nothing.
* Use the same approach in another place. This one is triggered
  every time a change is made, e.g. a character typed. I
  benchmarked this as well. The new code is about 500x faster
  (yes, seriously).

Bug: T269094
Change-Id: I00fe595a89be7a257e27ed28d38568c81483338b
2021-01-05 22:50:04 +00:00
..
.eslintrc.json Remove obsolete aliases from closures 2018-11-12 13:19:41 +00:00
ve.ui.CodeMirror.init.js VE: Add explicit dependency on targetLoader 2020-06-30 22:47:41 +01:00
ve.ui.CodeMirror.init.less Merge "Integrated bracket matching for CodeMirror with VisualEditor" 2021-01-05 11:37:57 +00:00
ve.ui.CodeMirrorAction.js Simplify onSelect handler implementation 2021-01-05 22:50:04 +00:00
ve.ui.CodeMirrorTool.js Record usage statistics for syntax highlighting 2020-11-25 15:18:01 +01:00