Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Sometimes you may want to call destroy on close event #14

Open
wants to merge 1 commit into from

1 participant

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Aug 8, 2012
  1. @Spavacz
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 1 deletion.
  1. +1 −1  Source/LightFace.js
View
2  Source/LightFace.js
@@ -71,7 +71,7 @@ var LightFace = new Class({
tween: {
duration: this.options.fadeDuration,
onComplete: function() {
- if(this.box.getStyle("opacity") == 0) {
+ if(this.box && this.box.getStyle("opacity") == 0) {
this.box.setStyles({ top: -9000, left: -9000 });
}
}.bind(this)
Something went wrong with that request. Please try again.