mediawiki-extensions-Visual.../modules/ve-mw/dm
Roan Kattouw f11fbee278 ve.dm.MWReferenceModel: Require parent document
Add a parentDoc parameter to the MWReferenceModel constructor and use
it to inherit language, direction and HTML document. Remove
getLang(), setLang(), getDir() and setDir() whose only purpose
was to propagate the language and direction from the parent document
in a hacky way.

This causes ReferenceModel documents to always have an HTML document
for URL resolution. Previously, this worked when editing existing
references because the newFromReferenceNode() code path calls
cloneFromRange() which propagates the HTML document, but it didn't work
when creating new references.

Bug: T109599
Change-Id: I5d9d34d4343be8428318fa0b795fa54c110e34f4
2015-08-26 23:48:45 -07:00
..
annotations MWInternalLinkAnnotation: Override new getDisplayTitle method 2015-08-24 14:29:49 -07:00
metaitems build: Enable jscs rule 'requireSpacesInsideBrackets' and make pass 2015-08-19 10:33:02 -07:00
models ve.dm.MWReferenceModel: Require parent document 2015-08-26 23:48:45 -07:00
nodes build: Enable jscs jsDoc rule 'checkTypes' and make pass 2015-08-19 11:37:13 -07:00