mediawiki-extensions-Visual.../modules/ve
Timo Tijhof e3cdfaa9fe mw.ViewPageTarget: Performance improvements for section edit links
Follows-up I4b9c47fd65a700a:
* Remove unused closingBracketSymbol.
* Moving veSectionEditUri and sectionEditUri inline as it is
  only used once. This will allow it to be easily dereferenced
  (instead of likely staying in memory due to being claimed by
  remaining closures "expand" and "expandSoon" which will
  continue to claim and enjoy access to this scope.
  Also changed it to use the attr() callback so that we
  don't access `$editLink.attr( 'href' )` twice.
* Add various comments explaining this non-obvious approach.
  Though it makes sense (eventually) and more elaborate details
  are in the original commitmsg, that is no excuse for a 100 line
  function without a single comment, especially with all these
  things going on.
* Use "shrink" instead of "contract" (seems more common in
  context of web UI elements and less ambgiuous in English).
* Remove redundant toString in `new mw.Uri( veEditUri )`.
  Aside from redundant, it also had more overhead (serialising
  uri object to string and re-parsing). It revoked its ability
  to make an efficient clone by taking the mw.Uri object as input
  as opposed to having to parse it again. mw.Uri#clone does the
  same internally.
* Avoid variable names like $this, that or self. Using a more
  descriptive name instead.
* Re-use $closingBracket instead of using last() 3 times which
  makes 3 clones of the jQuery object with the same last element
  in it.
* Refactor odd swapping of closingBracket-hide and
  middleBracket-clone-show.
  It now keeps the original opening/edit/closing in tact and adds
  devider/hidden/edit-source/outerClosing at the end.

Change-Id: I5f093f2927b769fed0c6d1a40f99e73f9b653b9a
2013-06-27 13:11:38 -07:00
..
ce Preserve scroll position after dialog close 2013-06-26 13:03:59 +01:00
dm Prevent overlapping link annotations 2013-06-26 16:20:51 +01:00
init mw.ViewPageTarget: Performance improvements for section edit links 2013-06-27 13:11:38 -07:00
test ve.ui.ViewRegistry annihilation 2013-06-26 16:52:10 -07:00
ui Merge "ve.ui.ViewRegistry annihilation" 2013-06-27 01:51:53 +00:00
ve.BranchNode.js
ve.debug.js ve.debug: Document why we use global Function#apply+Function#call instead of method.apply 2013-05-30 13:03:14 +01:00
ve.Document.js Fix selectNodes() bug with empty non-content branch nodes 2013-06-17 19:09:12 +00:00
ve.Element.js Code style fix: (X) -> ( X ) 2013-06-24 18:51:59 +01:00
ve.EventEmitter.js oojs: Integrate with OOJS v1.0.0 2013-06-06 17:29:55 +02:00
ve.Factory.js
ve.js ve.isInstanceOfAny utility function 2013-06-26 14:49:04 -07:00
ve.LeafNode.js
ve.NamedClassFactory.js
ve.Node.js ve.ce.Document: Introduce getRelativeRange method 2013-06-05 13:10:38 +01:00
ve.Range.js
ve.Registry.js