This commit is contained in:
Max Lynch
2015-09-15 12:58:12 -05:00
parent 4de0eaf95f
commit c391314ede
3 changed files with 75 additions and 1 deletions

View File

@ -17,7 +17,11 @@ export class NativePluginDecorator {
cls.pluginWarn();
// If the user supplied a default return value, return it here.
return (typeof returnType === 'function') ? returnType() : returnType;
if(returnType) {
return (typeof returnType === 'function') ? returnType() : returnType;
}
return false;
};
cls.pluginWarn = () => {