Merge pull request #594 from ccerrillo/master

changes in mootools breaks the context menu
This commit is contained in:
Christophe Dumez 2013-06-08 05:54:08 -07:00
commit b8598bfc14

View File

@ -27,7 +27,17 @@ var ContextMenu = new Class({
this.targets = $$(this.options.targets);
//fx
this.fx = new Fx.Tween(this.menu, { property: 'opacity', duration:this.options.fadeSpeed });
this.fx = new Fx.Tween(this.menu, {
property: 'opacity',
duration:this.options.fadeSpeed,
onComplete: function() {
if(this.getStyle('opacity')){
this.setStyle('visibility','visible');
}else{
this.setStyle('visibility','hidden');
}
}.bind(this.menu)
});
//hide and begin the listener
this.hide().startListener();