mediawiki-extensions-Visual.../modules/ve
Timo Tijhof 73851696f1 ve.Factory: No need for a-b-c workaround, createObject and apply.
This works just fine, as also previously tested/proven by
ve.cloneObject, which uses the same concept of creating an object
identical to what invoking the constructor with "new" would do,
but without invoking the constructor function (which has side-
effects).

Except in this case we do invoke the constructor function, but
we can't use new in ve.Factory because of the arbitrary number of
arguments.

Added a test to assert that 3+ arguments and that instanceof
work as expected.

Change-Id: If0add3da7475886e476900044acda2ba7d01fb11
2012-10-09 19:36:48 +02:00
..
ce Fix constructor names; remove redundant hasOwnProperty. 2012-10-08 06:15:20 +02:00
dm Fix constructor names; remove redundant hasOwnProperty. 2012-10-08 06:15:20 +02:00
init Alter the target of the Feedback link to be the right page. 2012-10-02 15:41:18 -07:00
test ve.Factory: No need for a-b-c workaround, createObject and apply. 2012-10-09 19:36:48 +02:00
ui Added surface model lock and unlock events 2012-10-01 14:23:11 -07:00
ve.AnnotationSet.js Fix constructor names; remove redundant hasOwnProperty. 2012-10-08 06:15:20 +02:00
ve.BranchNode.js Fix constructor names; remove redundant hasOwnProperty. 2012-10-08 06:15:20 +02:00
ve.debug.js Setup variable ve.debug to true when ve.debug.js is loaded. 2012-10-03 18:02:31 -07:00
ve.Document.js Fix constructor names; remove redundant hasOwnProperty. 2012-10-08 06:15:20 +02:00
ve.EventEmitter.js Whitespace and comments 2012-09-17 16:53:03 -07:00
ve.Factory.js ve.Factory: No need for a-b-c workaround, createObject and apply. 2012-10-09 19:36:48 +02:00
ve.js Fix constructor names; remove redundant hasOwnProperty. 2012-10-08 06:15:20 +02:00
ve.LeafNode.js Rename ve_foo_bar back to VeFooBar per discussion 2012-09-06 16:15:55 -07:00
ve.Node.js Rename ve_foo_bar back to VeFooBar per discussion 2012-09-06 16:15:55 -07:00
ve.OrderedHashSet.js Fix constructor names; remove redundant hasOwnProperty. 2012-10-08 06:15:20 +02:00
ve.Position.js Whitespace and comments 2012-09-17 16:53:03 -07:00
ve.Range.js Fix constructor names; remove redundant hasOwnProperty. 2012-10-08 06:15:20 +02:00
ve.Surface.js Rename ve_foo_bar back to VeFooBar per discussion 2012-09-06 16:15:55 -07:00