mirror of
https://bitbucket.org/wisemapping/wisemapping-open-source.git
synced 2024-11-22 14:17:57 +01:00
fix wrong jquery call method, replace toggle by trigger for handling events
This commit is contained in:
parent
2ab488bfa6
commit
3ea4d56604
@ -66,7 +66,7 @@ mindplot.NodeGraph = new Class({
|
|||||||
|
|
||||||
fireEvent: function(type, event) {
|
fireEvent: function(type, event) {
|
||||||
var elem = this.get2DElement();
|
var elem = this.get2DElement();
|
||||||
elem.toggle(type, event);
|
elem.trigger(type, event);
|
||||||
},
|
},
|
||||||
|
|
||||||
setMouseEventsEnabled : function(isEnabled) {
|
setMouseEventsEnabled : function(isEnabled) {
|
||||||
|
@ -87,8 +87,8 @@ web2d.Element = new Class({
|
|||||||
this._peer.addEvent(type, listener);
|
this._peer.addEvent(type, listener);
|
||||||
},
|
},
|
||||||
|
|
||||||
toggle : function(type, event) {
|
trigger : function(type, event) {
|
||||||
this._peer.toggle(type, event);
|
this._peer.trigger(type, event);
|
||||||
},
|
},
|
||||||
|
|
||||||
cloneEvents : function(from) {
|
cloneEvents : function(from) {
|
||||||
|
@ -89,8 +89,8 @@ web2d.peer.svg.ElementPeer = new Class({
|
|||||||
$(this._native).bind(type, listener);
|
$(this._native).bind(type, listener);
|
||||||
},
|
},
|
||||||
|
|
||||||
toggle:function (type, event) {
|
trigger:function (type, event) {
|
||||||
$(this._native).toggle(type, event);
|
$(this._native).trigger(type, event);
|
||||||
},
|
},
|
||||||
|
|
||||||
cloneEvents:function (from) {
|
cloneEvents:function (from) {
|
||||||
|
Loading…
Reference in New Issue
Block a user