Skip to content

Commit

Permalink
fix(core): dont check if method exists when overriding
Browse files Browse the repository at this point in the history
fixes #1043
  • Loading branch information
ihadeed committed Mar 2, 2017
1 parent 86097b0 commit 754c5ec
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/plugins/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});
}
Expand Down

0 comments on commit 754c5ec

Please sign in to comment.