getLeafNode is now a static method and should be called as a static method

Change-Id: I4f079523add81ef14537c950b29436422e1de850
This commit is contained in:
Inez Korczynski 2012-04-06 17:13:43 +02:00
parent 5827843182
commit 68cf13fb1e

View file

@ -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;
}