react-modal-video
Advanced tools
Comparing version 1.0.3 to 1.0.4
@@ -54,3 +54,3 @@ 'use strict'; | ||
this.setState({ isOpen: false }); | ||
if (this.props.onClose === 'function') { | ||
if (typeof this.props.onClose === 'function') { | ||
this.props.onClose(); | ||
@@ -57,0 +57,0 @@ } |
{ | ||
"name": "react-modal-video", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"main": "lib/index.js", | ||
@@ -5,0 +5,0 @@ "description": "Modal Video Viewer", |
@@ -22,3 +22,3 @@ import React from 'react' | ||
this.setState({isOpen: false}) | ||
if (this.props.onClose === 'function') { | ||
if (typeof this.props.onClose === 'function') { | ||
this.props.onClose(); | ||
@@ -25,0 +25,0 @@ } |
Sorry, the diff of this file is too big to display
883385