Skip to content

Commit f14bb02

Browse files
committed
Make options optional in StyleObserver() and ElementStyleObserver() constructors, fixes #108
1 parent ecf0c59 commit f14bb02

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/element-style-observer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ export default class ElementStyleObserver {
7474
/**
7575
* @param {Element} target
7676
* @param {StyleObserverCallback} callback
77-
* @param {StyleObserverOptions} options
77+
* @param {StyleObserverOptions} [options]
7878
*/
7979
constructor (target, callback, options = {}) {
8080
this.constructor.all.add(target, this);

src/style-observer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export default class StyleObserver {
1919

2020
/**
2121
* @param {StyleObserverCallback} callback
22-
* @param {StyleObserverOptions | string | string[]} options
22+
* @param {StyleObserverOptions | string | string[]} [options]
2323
*/
2424
constructor (callback, options) {
2525
this.callback = callback;

0 commit comments

Comments
 (0)