@dotdev/limelight
Advanced tools
Comparing version 2.1.22 to 2.1.23
@@ -0,1 +1,10 @@ | ||
## [2.1.23](https://github.com/ButsAndCats/limelight/compare/2.1.22...2.1.23) (2018-10-12) | ||
### :sparkles: | ||
* Make body class null by default ([285ecf4](https://github.com/ButsAndCats/limelight/commit/285ecf4)) | ||
## [2.1.22](https://github.com/ButsAndCats/limelight/compare/v2.1.21...v2.1.22) (2018-10-12) | ||
@@ -2,0 +11,0 @@ |
/* ===================================================================================== @preserve = | ||
Limelight | ||
version v2.1.18 | ||
version v2.1.19 | ||
Author: George Butter | ||
@@ -33,3 +33,3 @@ https://github.com/ButsAndCats/limelight | ||
visibleClass: 'visible', | ||
bodyClass: 'active-popup', | ||
bodyClass: null, | ||
triggerClass: null, | ||
@@ -223,3 +223,6 @@ detach: null, | ||
// Add the body class to the body | ||
Limelight.addClass(document.body, this.settings.bodyClass) | ||
if (this.settings.bodyClass) { | ||
Limelight.addClass(document.body, this.settings.bodyClass) | ||
} | ||
// Define that this element is visible | ||
@@ -278,5 +281,6 @@ this.visible = true | ||
this.visible = false | ||
if (this.settings.bodyClass) { | ||
Limelight.removeClass(document.body, this.settings.bodyClass) | ||
} | ||
Limelight.removeClass(document.body, this.settings.bodyClass) | ||
Limelight.removeClass(this.element, this.settings.visibleClass) | ||
@@ -283,0 +287,0 @@ |
@@ -56,3 +56,3 @@ { | ||
}, | ||
"version": "2.1.22" | ||
"version": "2.1.23" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
34601
738