mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-25 06:46:26 +00:00
831f2f5cb1
In preparation of pushing the object-management branch, which will need more shared variables (for efficiency) creating a shared closure. To avoid a spegetti of immediately-invoked functions that return functions (like ve.getObjectValues and ve.getObjectKeys). Less duplication of code and faster execution. First I had the closure around it as-is but then I figured it'd be faster to have a local reference to ve (instead of having to go through implied globals for references to other ve.*) So I made it a local variable and then exposed it. That way anything inside referring to each other stays within the same scope. Review with ignore-whitespace for clarity. Change-Id: I415d8635db6d82cf239f0364ccc2d63a61bd5a6d |
||
---|---|---|
.. | ||
ce | ||
dm | ||
init | ||
test | ||
ui | ||
ve.AnnotationSet.js | ||
ve.BranchNode.js | ||
ve.debug.js | ||
ve.Document.js | ||
ve.EventEmitter.js | ||
ve.Factory.js | ||
ve.js | ||
ve.LeafNode.js | ||
ve.Node.js | ||
ve.OrderedHashSet.js | ||
ve.Position.js | ||
ve.Range.js | ||
ve.Surface.js |