0
Fork 0
mirror of https://github.com/fastmail/Squire.git synced 2024-12-22 23:40:35 -05:00

Fix reference to old range method.

Now a function instead.
This commit is contained in:
Neil Jenkins 2013-07-17 11:35:34 +10:00
parent d2e9d2214b
commit 02a647c574
3 changed files with 5 additions and 3 deletions

View file

@ -3168,7 +3168,8 @@ proto.makeLink = function ( url ) {
if ( protocolEnd ) { if ( protocolEnd ) {
while ( url[ protocolEnd ] === '/' ) { protocolEnd += 1; } while ( url[ protocolEnd ] === '/' ) { protocolEnd += 1; }
} }
range._insertNode( insertNodeInRange(
range,
this._doc.createTextNode( url.slice( protocolEnd ) ) this._doc.createTextNode( url.slice( protocolEnd ) )
); );
} }

File diff suppressed because one or more lines are too long

View file

@ -2121,7 +2121,8 @@ proto.makeLink = function ( url ) {
if ( protocolEnd ) { if ( protocolEnd ) {
while ( url[ protocolEnd ] === '/' ) { protocolEnd += 1; } while ( url[ protocolEnd ] === '/' ) { protocolEnd += 1; }
} }
range._insertNode( insertNodeInRange(
range,
this._doc.createTextNode( url.slice( protocolEnd ) ) this._doc.createTextNode( url.slice( protocolEnd ) )
); );
} }