Merge "Fix wikitext warning: Get range from selection before trying to find start"

This commit is contained in:
jenkins-bot 2014-10-24 17:27:44 +00:00 committed by Gerrit Code Review
commit 5d6ee06b84

View file

@ -773,7 +773,7 @@ ve.init.mw.ViewPageTarget.static.checkForWikitextWarning = function ( surface, w
if ( !selection ) {
return;
}
node = doc.getBranchNodeFromOffset( selection.start );
node = doc.getBranchNodeFromOffset( selection.getRange().start );
if ( !( node instanceof ve.ce.ContentBranchNode ) ) {
return;
}