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