fix(core): dont check if method exists when overriding

fixes #1043
This commit is contained in:
Ibby 2017-03-01 21:34:05 -05:00
parent 86097b0ce6
commit 754c5ecbcb

View File

@ -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);
});
}