redo of r1438 to make popup use new Events-Fall-Through functionality (as introduced with r1468)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@1470 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
+8
-10
@@ -250,17 +250,15 @@ OpenLayers.Popup.prototype = {
|
|||||||
* hyperlinks or drag-selecting text.
|
* hyperlinks or drag-selecting text.
|
||||||
*/
|
*/
|
||||||
registerEvents:function() {
|
registerEvents:function() {
|
||||||
Event.observe(this.div, "mousedown",
|
this.events = new OpenLayers.Events(this, this.div, null, true);
|
||||||
this.onmousedown.bindAsEventListener(this));
|
|
||||||
Event.observe(this.div, "mousemove",
|
this.events.register("mousedown", this, this.onmousedown);
|
||||||
this.onmousemove.bindAsEventListener(this));
|
this.events.register("mousemove", this, this.onmousemove);
|
||||||
Event.observe(this.div, "mouseup",
|
this.events.register("mouseup", this, this.onmouseup);
|
||||||
this.onmouseup.bindAsEventListener(this));
|
this.events.register("click", this,
|
||||||
Event.observe(this.div, "click",
|
|
||||||
OpenLayers.Util.safeStopPropagation);
|
OpenLayers.Util.safeStopPropagation);
|
||||||
Event.observe(this.div, "mouseout",
|
this.events.register("mouseout", this, this.onmouseout);
|
||||||
this.onmouseout.bindAsEventListener(this));
|
this.events.register("dblclick", this,
|
||||||
Event.observe(this.div, "dblclick",
|
|
||||||
OpenLayers.Util.safeStopPropagation);
|
OpenLayers.Util.safeStopPropagation);
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user