functional minimalism

This commit is contained in:
Mo Bitar
2017-01-27 19:39:10 -06:00
parent ce053226a5
commit f296b0e49e
36 changed files with 444 additions and 960 deletions

View File

@@ -56,10 +56,6 @@ class Extension extends Item {
this.content_type = "Extension";
}
get syncProviderAction() {
return _.find(this.actions, {sync_provider: true})
}
actionsInGlobalContext() {
return this.actions.filter(function(action){
return action.context == "global" || action.sync_provider == true;