Skip to content

Commit a587fa2

Browse files
committed
chore: check typeof this[param]
1 parent 449b615 commit a587fa2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/plugins/cloudinary/models/video-source/video-source.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ class VideoSource extends BaseSource {
4747

4848
// Set extracted parameters using their respective methods
4949
SOURCE_PARAMS.forEach(param => {
50-
if (options[param] !== undefined && this[param]) {
50+
if (options[param] !== undefined && typeof this[param] === 'function') {
5151
this[param](options[param]);
5252
}
5353
});

0 commit comments

Comments
 (0)