mediawiki-extensions-Visual.../modules/ve
Roan Kattouw 83e1888275 Don't compare annotations directly with ve.compare()
Annotations' attributes might contain DOM elements, which cause infinite
recursion in ve.compare(). Annotation classes can protect against this
by overriding getHashObject() to summarize DOM nodes, but that doesn't
help if that's not respected everywhere.

Instead, compare the hash objects, those are safe. This does not appear
to be a problem in practice, currently, because the nowiki annotation
is experimental, oo.compare() now short-circuits if a === b, and because
of optimizations in openAndCloseAnnotations() which lead to the relevant
compareToForSerialization() code path being taken very rarely.

Bug: 51948
Change-Id: If1bcc3eee4fd14d107db1935d89dcc5516643b53
2013-07-28 00:10:42 +00:00
..
ce Merge "'CodeScript' => 'Code'" 2013-07-26 19:31:18 +00:00
dm Don't compare annotations directly with ve.compare() 2013-07-28 00:10:42 +00:00
init Code annotation button 2013-07-26 12:36:34 -07:00
test Code annotation button 2013-07-26 12:36:34 -07:00
ui Cleanup code icon 2013-07-26 13:07:40 -07: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 doc: Clean up spacing that caused <pre> or broken <ul>/<ol> 2013-07-25 04:02:50 +02:00
ve.Element.js Make local overlays local to surface and remove insane z-indexes 2013-07-02 19:35:43 +00:00
ve.EventEmitter.js oojs: Integrate with OOJS v1.0.0 2013-06-06 17:29:55 +02:00
ve.Factory.js
ve.js doc: Clean up spacing that caused <pre> or broken <ul>/<ol> 2013-07-25 04:02:50 +02: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