Skip to content
Browse files

MDL-28975 question engine, JavaScript error in IE.

  • Loading branch information...
1 parent 24654d9 commit 0a20ddbe7dcab2941931b74ee670dffb01218765 @timhunt timhunt committed
Showing with 2 additions and 2 deletions.
  1. +2 −2 question/qengine.js
View
4 question/qengine.js
@@ -92,7 +92,7 @@ M.core_scroll_manager.scroll_to_saved_pos = function(Y) {
// And the following horror is necessary to make it work in IE 8.
// Note that the class ie8 on body is only there in Moodle 2.0 and OU Moodle.
if (Y.one('body').hasClass('ie')) {
- M.core_scroll_manager.force_ie_to_scroll(matches[1])
+ M.core_scroll_manager.force_ie_to_scroll(Y, matches[1])
}
}
}
@@ -101,7 +101,7 @@ M.core_scroll_manager.scroll_to_saved_pos = function(Y) {
* Beat IE into submission.
* @param targetpos the target scroll position.
*/
-M.core_scroll_manager.force_ie_to_scroll = function(targetpos) {
+M.core_scroll_manager.force_ie_to_scroll = function(Y, targetpos) {
var hackcount = 25;
function do_scroll() {
window.scrollTo(0, targetpos);

0 comments on commit 0a20ddb

Please sign in to comment.
Something went wrong with that request. Please try again.