From 754c5ecbcb415f1ee0acf28aca089022b695fecc Mon Sep 17 00:00:00 2001 From: Ibby Date: Wed, 1 Mar 2017 21:34:05 -0500 Subject: [PATCH] fix(core): dont check if method exists when overriding fixes #1043 --- src/plugins/plugin.ts | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/plugins/plugin.ts b/src/plugins/plugin.ts index e5a5962697..878ffcc63a 100644 --- a/src/plugins/plugin.ts +++ b/src/plugins/plugin.ts @@ -378,14 +378,6 @@ function overrideFunction(pluginObj: any, methodName: string, args: any[], opts: return; } - let method = pluginInstance[methodName]; - if (!method) { - observer.error({ - error: 'no_such_method' - }); - observer.complete(); - return; - } pluginInstance[methodName] = observer.next.bind(observer); }); }