Update VE core submodule to master (ac24b50)

New changes:
0b7e689 FindAndReplaceDialog: don't use tabindex
17b10a5 Localisation updates from https://translatewiki.net.
a4133e4 [BREAKING CHANGE] Make whitespaceHtmlCharacters a real static property

Local changes:
* MWEntityNode: Fix lookup of whitespaceHtmlCharacters

  Property is now in 'static', and use registry to look up
  TextNode by symbolic name.

Change-Id: Ied8c0c6feb69141c7c53fc4cc790774dee2cb63c
Depends-On: I7537b46a9fd58dfb2bd18dc4ed469aa221b96e86
This commit is contained in:
Ed Sanders 2016-03-03 11:28:15 +00:00 committed by James D. Forrester
parent 115bf4b3d2
commit 62d16e5a8a
2 changed files with 4 additions and 2 deletions

2
lib/ve

@ -1 +1 @@
Subproject commit 6b85afc55e840c3f3ea0c70a2a2f93e572b36d75
Subproject commit ac24b50f9e37736f60b92e1d688b15efc05f685d

View file

@ -48,11 +48,13 @@ ve.ce.MWEntityNode.static.name = 'mwEntity';
ve.ce.MWEntityNode.prototype.onUpdate = function () {
var
chr = this.model.getAttribute( 'character' ),
whitespaceHtmlChars = ve.ce.TextNode.whitespaceHtmlCharacters,
whitespaceHtmlChars = ve.ce.nodeFactory.lookup( 'text' ).static.whitespaceHtmlCharacters,
significantWhitespace = this.getModel().getParent().hasSignificantWhitespace();
if ( !significantWhitespace && Object.prototype.hasOwnProperty.call( whitespaceHtmlChars, chr ) ) {
chr = whitespaceHtmlChars[ chr ];
}
this.$element.text( chr );
};