Skip to content

Commit b3621dd

Browse files
committed
remove isSupported static method
1 parent 415373d commit b3621dd

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
### Changed
2121

2222
* **Breaking:** The `reveal()` method no longer accepts an `interval` parameter. Instead, sequence intervals are now defined with `options.interval`.
23-
* **Breaking:** The instance method `isSupported()` is now static.
23+
* **Breaking:** The `isSupported()` method has been removed.
2424
* **Breaking:** `options.distance` supports only `em` `px` and `%` values.
2525
* **Breaking:** ScrollReveal methods are no longer chainable.
2626
* **Breaking:** ScrollReveal requires a commercial license, unless for [GPL-3.0](https://opensource.org/licenses/GPL-3.0) compatible open source projects.

src/instance/constructor.js

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export default function ScrollReveal(options = {}) {
3131
return new ScrollReveal(options)
3232
}
3333

34-
if (!ScrollReveal.isSupported()) {
34+
if (!transformSupported() || !transitionSupported()) {
3535
logger.call(this, 'Instantiation aborted.', 'This browser is not supported.')
3636
return noop
3737
}
@@ -106,12 +106,6 @@ export default function ScrollReveal(options = {}) {
106106
return _instance ? _instance : (_instance = this)
107107
}
108108

109-
/**
110-
* Static members are available immediately during instantiation,
111-
* so debugging and browser support details are handled here.
112-
*/
113-
ScrollReveal.isSupported = () => transformSupported() && transitionSupported()
114-
115109
Object.defineProperty(ScrollReveal, 'debug', {
116110
get: () => _debug || false,
117111
set: value => {

0 commit comments

Comments
 (0)