Trigger feature related events with feature information and layer related events with layer information. Also adding events.on and events.un convenience methods. r=crschmidt (closes #1343)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6149 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
+10
-6
@@ -403,12 +403,16 @@ OpenLayers.Popup = OpenLayers.Class({
|
||||
registerEvents:function() {
|
||||
this.events = new OpenLayers.Events(this, this.div, null, true);
|
||||
|
||||
this.events.register("mousedown", this, this.onmousedown);
|
||||
this.events.register("mousemove", this, this.onmousemove);
|
||||
this.events.register("mouseup", this, this.onmouseup);
|
||||
this.events.register("click", this, this.onclick);
|
||||
this.events.register("mouseout", this, this.onmouseout);
|
||||
this.events.register("dblclick", this, this.ondblclick);
|
||||
this.events.on({
|
||||
"mousedown": this.onmousedown,
|
||||
"mousemove": this.onmousemove,
|
||||
"mouseup": this.onmouseup,
|
||||
"click": this.onclick,
|
||||
"mouseout": this.onmouseout,
|
||||
"dblclick": this.ondblclick,
|
||||
scope: this
|
||||
});
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user