mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-24 22:35:41 +00:00
getLeafNode is now a static method and should be called as a static method
Change-Id: I4f079523add81ef14537c950b29436422e1de850
This commit is contained in:
parent
5827843182
commit
68cf13fb1e
|
@ -249,7 +249,7 @@ ve.ce.Surface.prototype.pollChanges = function( async ) {
|
|||
this.getOffset( rangySel.focusNode, rangySel.focusOffset )
|
||||
);
|
||||
}
|
||||
node = this.getLeafNode( rangySel.anchorNode )[0];
|
||||
node = ve.ce.Surface.getLeafNode( rangySel.anchorNode )[0];
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -565,7 +565,7 @@ ve.ce.Surface.prototype.onKeyDown = function( e ) {
|
|||
|
||||
ve.ce.Surface.prototype.getOffset = function( elem, offset, global ) {
|
||||
var global = true;
|
||||
var $leafNode = this.getLeafNode( elem );
|
||||
var $leafNode = ve.ce.Surface.getLeafNode( elem );
|
||||
if ( $leafNode === null ) {
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue