From 61db3d8cab1e011f1033b60874979fe2481970c5 Mon Sep 17 00:00:00 2001 From: Roan Kattouw Date: Mon, 24 Jan 2011 02:58:12 +0000 Subject: [PATCH] (bug 26827) Fix JS error on IE caused by the rename of {save,restore}StuffForIE() not updating callers. Changed callers to use {save,restore}Selection() or {save,restore}CursorAndScrollTop() as seemed appropriate --- resources/jquery/jquery.textSelection.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/jquery/jquery.textSelection.js b/resources/jquery/jquery.textSelection.js index 1f2a1dd59d..2d1633bceb 100644 --- a/resources/jquery/jquery.textSelection.js +++ b/resources/jquery/jquery.textSelection.js @@ -91,7 +91,7 @@ encapsulateSelection: function( options ) { // IE $(this).focus(); if ( context ) { - context.fn.restoreStuffForIE(); + context.fn.restoreCursorAndScrollTop(); } var selText = $(this).textSelection( 'getSelection' ); var scrollTop = this.scrollTop; @@ -398,4 +398,4 @@ scrollToCaretPosition: function( options ) { context.fn.saveSelection(); } return retval; -}; \ No newline at end of file +}; -- 2.20.1