mediawiki-extensions-Visual.../modules/ve
Timo Tijhof 831f2f5cb1 Shared closure around utility functions in ve.js
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
2012-09-06 15:29:26 -07:00
..
ce Manage annotations in ve.AnnotationSet object 2012-09-06 14:39:38 -07:00
dm Merge "Alienate everything with an unrecognized mw: type." 2012-09-06 21:57:00 +00:00
init (bug 39558) Implement byteLimit 2012-09-06 02:54:43 +02:00
test Merge "Also add clone functionality, undefined guard and tests to ve.copyObject()" 2012-09-06 21:53:05 +00:00
ui Manage annotations in ve.AnnotationSet object 2012-09-06 14:39:38 -07:00
ve.AnnotationSet.js Manage annotations in ve.AnnotationSet object 2012-09-06 14:39:38 -07:00
ve.BranchNode.js Refactor ve.js utilities and improve documentation 2012-08-12 20:32:45 +02:00
ve.debug.js Remainder JSHint fixes on modules/ve/* 2012-09-05 13:45:09 -07:00
ve.Document.js This should never happen, but if it does, lets make sure we know 2012-08-08 15:17:45 -07:00
ve.EventEmitter.js Refactor ve.js utilities and improve documentation 2012-08-12 20:32:45 +02:00
ve.Factory.js Rename fringeWhitespace to internal 2012-08-16 15:14:01 -07:00
ve.js Shared closure around utility functions in ve.js 2012-09-06 15:29:26 -07:00
ve.LeafNode.js Puttin' em white-spacers where they aught'a be 2012-08-06 18:52:19 -07:00
ve.Node.js Make use of new jshint options 2012-08-10 02:50:30 +02:00
ve.OrderedHashSet.js Manage annotations in ve.AnnotationSet object 2012-09-06 14:39:38 -07:00
ve.Position.js Puttin' em white-spacers where they aught'a be 2012-08-06 18:52:19 -07:00
ve.Range.js Added basic ve.dm.SurfaceFragment class 2012-08-09 16:18:13 -07:00
ve.Surface.js Cleaned up uses of jQuery to create and appendTo/prependTo 2012-08-29 18:43:48 +02:00