diff options
author | alexwl <alexey.a.kiryushin@gmail.com> | 2019-02-20 12:48:48 +0300 |
---|---|---|
committer | alexwl <alexey.a.kiryushin@gmail.com> | 2019-02-20 12:48:48 +0300 |
commit | c831f86d259b6d949b0f71b894c7f2b07b4eed15 (patch) | |
tree | 3d0831e2ae84d0d576e5c808b488db7b7cd12aa8 /javascript/app/controllers | |
parent | d65f02107a6adce4b45ba9b8ecebf78571612a65 (diff) |
Remove unused variables and functions
Diffstat (limited to 'javascript/app/controllers')
-rw-r--r-- | javascript/app/controllers/package.js | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/javascript/app/controllers/package.js b/javascript/app/controllers/package.js index 278899f..a9f5559 100644 --- a/javascript/app/controllers/package.js +++ b/javascript/app/controllers/package.js @@ -9,18 +9,14 @@ export default Ember.Controller.extend({ query : null, searchMode : "currentPackage", createSearchUrlFunction : Ember.computed("searchMode",function() { - const packageId = this.get('model.id'); - const query = this.get('query'); + const packageId = this.get('model.id'); if(this.get('searchMode') === "currentPackage") { return (query) => urls.identifierSearchUrl(packageId,query); - } else { + } else { return (query) => urls.globalIdentifiersUrl(query); } }), actions : { - searchModeChanged () { - - }, searchIdentifier (query) { if(query) { this.set('currentFile',null); |