[Mapbender-commits] r5804 - trunk/mapbender/http/javascripts
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Wed Mar 17 09:20:57 EDT 2010
Author: christoph
Date: 2010-03-17 09:20:56 -0400 (Wed, 17 Mar 2010)
New Revision: 5804
Modified:
trunk/mapbender/http/javascripts/map_obj.js
Log:
Modified: trunk/mapbender/http/javascripts/map_obj.js
===================================================================
--- trunk/mapbender/http/javascripts/map_obj.js 2010-03-17 13:20:00 UTC (rev 5803)
+++ trunk/mapbender/http/javascripts/map_obj.js 2010-03-17 13:20:56 UTC (rev 5804)
@@ -1474,28 +1474,16 @@
return true;
};
-
- this.getMousePos = function(e){
- if (ie) {
- if (this.frameName) {
- clickX = window.frames[fName].event.clientX;
- clickY = window.frames[fName].event.clientY;
- }
- else {
- clickX = event.clientX;
- clickY = event.clientY;
- }
- }
- else {
- clickX = e.pageX;
- clickY = e.pageY;
- }
-
- //remove divtag offset
- clickX -= parseInt(this.getDomElement().style.left, 10);
- clickY -= parseInt(this.getDomElement().style.top, 10);
-
- return new Point(clickX, clickY);
+
+ /* DEPRECATED! */
+ this.getMousePos = function(e){
+ var pt = this.getMousePosition(e);
+ // set the globals for backwards compatibility
+ if (pt !== null) {
+ clickX = pt.x;
+ clickY = pt.y;
+ }
+ return pt;
};
var that = this;
More information about the Mapbender_commits
mailing list