From 6e18d0e254f3190253f7ce6cfd0a15fca9d300aa Mon Sep 17 00:00:00 2001 From: Gregers Gram Rygg Date: Mon, 5 Nov 2012 23:08:42 +0100 Subject: [PATCH] Added comment about olMochWin --- lib/OpenLayers/Events.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/OpenLayers/Events.js b/lib/OpenLayers/Events.js index bd8a6d6d6d..0f1baca085 100644 --- a/lib/OpenLayers/Events.js +++ b/lib/OpenLayers/Events.js @@ -929,6 +929,7 @@ OpenLayers.Events = OpenLayers.Class({ * calculated values. */ getTouchClientXY: function (evt) { + // olMochWin is to override window, used for testing var win = window.olMockWin || window, winPageX = win.pageXOffset, winPageY = win.pageYOffset,