fix wrong jquery call method, replace toggle by trigger for handling events

This commit is contained in:
Ezequiel Bergamaschi 2014-03-17 02:14:41 -03:00
parent 2ab488bfa6
commit 3ea4d56604
3 changed files with 5 additions and 5 deletions

View File

@ -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) {

View File

@ -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) {

View File

@ -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) {