xcomponent
Advanced tools
Comparing version 6.0.48 to 6.0.49
{ | ||
"name": "xcomponent", | ||
"version": "6.0.48", | ||
"version": "6.0.49", | ||
"description": "Cross domain components.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -698,3 +698,3 @@ /* @flow */ | ||
if (val instanceof Function) { | ||
if (typeof val === 'function') { | ||
return val(original, override).apply(this, arguments); | ||
@@ -701,0 +701,0 @@ } |
@@ -24,3 +24,3 @@ /* @flow */ | ||
if (!(value instanceof Function)) { | ||
if (!(typeof value === 'function')) { | ||
throw new Error(`Prop is not of type function: ${key}`); | ||
@@ -27,0 +27,0 @@ } |
@@ -91,3 +91,3 @@ /* @flow */ | ||
return replaceObject(obj, (value, key, fullKey) => { | ||
if (value instanceof Function) { | ||
if (typeof value === 'function') { | ||
return { | ||
@@ -94,0 +94,0 @@ __type__: '__function__' |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
5726744
21733