Skip to content

Commit

Permalink
fix(plugin): use call for id based clearFunction
Browse files Browse the repository at this point in the history
  • Loading branch information
tlancina committed Feb 8, 2016
1 parent 9e86a40 commit c2fdf39
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dist/plugins/plugin.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/plugins/plugin.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/plugins/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ function wrapObservable(pluginObj:any, methodName:string, args:any[], opts:any =
if (opts.clearWithArgs){
return get(window, pluginObj.pluginRef)[opts.clearFunction].apply(pluginObj, args);
}
return get(window, pluginObj.pluginRef)[opts.clearFunction].apply(pluginObj, pluginResult);
return get(window, pluginObj.pluginRef)[opts.clearFunction].call(pluginObj, pluginResult);
} catch(e) {
console.warn('Unable to clear the previous observable watch for', pluginObj.name, methodName);
console.log(e);
Expand Down

0 comments on commit c2fdf39

Please sign in to comment.