Skip to content
This repository was archived by the owner on Dec 3, 2018. It is now read-only.

Commit

Permalink
This is just for mootools 1.4. For whatever reason fade doesn't add v…
Browse files Browse the repository at this point in the history
…isibility: hidden to the elements inline css. Added a onComplete event to the fade/tween and set the style manually.
  • Loading branch information
Warren committed Sep 29, 2011
1 parent 2c2f363 commit 0f567eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/LightFace.js
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ var LightFace = new Class({
},
unfade: function(delay) {
(function() {
this.overlay.fade(0);
this.overlay.set('tween',{onComplete: (function(){ this.setStyle('visibility','hidden'); }).bind(this.overlay)}).fade(0);
}.bind(this)).delay(delay || this.options.fadeDelay);
this.fireEvent('unfade');
return this;
Expand Down

0 comments on commit 0f567eb

Please sign in to comment.