0
Fork 0
mirror of https://github.com/fastmail/Squire.git synced 2025-02-07 06:37:59 -05:00

Return same node passed in to fixCursor function.

This commit is contained in:
Neil Jenkins 2013-04-10 10:21:25 +10:00
parent e1bae30a16
commit dd7034501f
3 changed files with 5 additions and 3 deletions

View file

@ -285,6 +285,7 @@ function fixCursor ( node ) {
// inserted. In Opera and IE, we just need a textnode in order for the
// cursor to appear.
var doc = node.ownerDocument,
root = node,
fixer, child;
if ( node.nodeName === 'BODY' ) {
@ -341,7 +342,7 @@ function fixCursor ( node ) {
node.appendChild( fixer );
}
return node;
return root;
}
function split ( node, offset, stopNode ) {

File diff suppressed because one or more lines are too long

View file

@ -156,6 +156,7 @@ function fixCursor ( node ) {
// inserted. In Opera and IE, we just need a textnode in order for the
// cursor to appear.
var doc = node.ownerDocument,
root = node,
fixer, child;
if ( node.nodeName === 'BODY' ) {
@ -212,7 +213,7 @@ function fixCursor ( node ) {
node.appendChild( fixer );
}
return node;
return root;
}
function split ( node, offset, stopNode ) {