aboutsummaryrefslogtreecommitdiff
path: root/javascript/app/routes
diff options
context:
space:
mode:
authorAvi Dessauer <avi.the.coder@gmail.com>2019-08-21 06:03:31 -0400
committerAlexey Kiryushin <alexey.a.kiryushin@gmail.com>2019-08-21 13:03:31 +0300
commitaf41ab40e1fc4888d1873a9ffe681ddafdfb4ee0 (patch)
tree219315a1ef02ae0d0f21889e7b88e08318b308a2 /javascript/app/routes
parent5295ac7f7f26c3a43f0fe9b9c826e876b29cf666 (diff)
Delete trailing whitespace (#42)
Diffstat (limited to 'javascript/app/routes')
-rw-r--r--javascript/app/routes/package.js2
-rw-r--r--javascript/app/routes/package/index.js6
-rw-r--r--javascript/app/routes/package/search.js4
-rw-r--r--javascript/app/routes/package/show/file.js16
-rw-r--r--javascript/app/routes/package/show/index.js6
-rw-r--r--javascript/app/routes/search.js8
6 files changed, 21 insertions, 21 deletions
diff --git a/javascript/app/routes/package.js b/javascript/app/routes/package.js
index e908ca4..6abc603 100644
--- a/javascript/app/routes/package.js
+++ b/javascript/app/routes/package.js
@@ -8,7 +8,7 @@ export default Ember.Route.extend({
.catch((e) => {console.log(e);this.transitionTo("/package-not-found");});
},
setupController(controller, model) {
- this._super(controller, model);
+ this._super(controller, model);
controller.set('bottomPanelVisible',false);
},
actions : {
diff --git a/javascript/app/routes/package/index.js b/javascript/app/routes/package/index.js
index e36abd5..15ff8a5 100644
--- a/javascript/app/routes/package/index.js
+++ b/javascript/app/routes/package/index.js
@@ -1,7 +1,7 @@
import Ember from 'ember';
-export default Ember.Route.extend({
- afterModel : function (model,transition) {
- transition.send("fileOpened",null);
+export default Ember.Route.extend({
+ afterModel : function (model,transition) {
+ transition.send("fileOpened",null);
}
});
diff --git a/javascript/app/routes/package/search.js b/javascript/app/routes/package/search.js
index 7bc711b..058f9ec 100644
--- a/javascript/app/routes/package/search.js
+++ b/javascript/app/routes/package/search.js
@@ -10,7 +10,7 @@ export default Ember.Route.extend({
url: urls.identifierSearchUrl(this.modelFor('package').id,params.query)+"?per_page=20"
};
},
- afterModel () {
+ afterModel () {
const onmouseup = (event) => {
// This makes links in documentation clickable
if(event.target.dataset.location) {
@@ -26,7 +26,7 @@ export default Ember.Route.extend({
}
};
this._onmouseup = onmouseup;
- document.addEventListener('mouseup',onmouseup);
+ document.addEventListener('mouseup',onmouseup);
},
deactivate() {
if(this._onmouseup) {
diff --git a/javascript/app/routes/package/show/file.js b/javascript/app/routes/package/show/file.js
index ead6ee8..568d288 100644
--- a/javascript/app/routes/package/show/file.js
+++ b/javascript/app/routes/package/show/file.js
@@ -3,25 +3,25 @@ import Ember from 'ember';
export default Ember.Route.extend({
store : Ember.inject.service(),
model : function (params) {
- const packageInfo = this.modelFor('package');
- if(packageInfo.modules[params.filePath]) {
+ const packageInfo = this.modelFor('package');
+ if(packageInfo.modules[params.filePath]) {
return this.get('store').loadHaskellModule(packageInfo.id,params.filePath)
- .catch((e) => {console.log(e);this.transitionTo("/not-found");});
+ .catch((e) => {console.log(e);this.transitionTo("/not-found");});
} else {
return this.get('store').loadFile(packageInfo.id,params.filePath)
- .then((result) => {
+ .then((result) => {
document.title = packageInfo.id;
return result;
})
.catch((e) => {console.log(e);this.transitionTo("/not-found");});
}
},
- afterModel (model) {
+ afterModel (model) {
document.title = model.id + " - " + this.modelFor('package').id;
},
actions : {
- didTransition : function () {
- this.send("fileOpened",this.currentModel.id);
- }
+ didTransition : function () {
+ this.send("fileOpened",this.currentModel.id);
+ }
}
});
diff --git a/javascript/app/routes/package/show/index.js b/javascript/app/routes/package/show/index.js
index e36abd5..15ff8a5 100644
--- a/javascript/app/routes/package/show/index.js
+++ b/javascript/app/routes/package/show/index.js
@@ -1,7 +1,7 @@
import Ember from 'ember';
-export default Ember.Route.extend({
- afterModel : function (model,transition) {
- transition.send("fileOpened",null);
+export default Ember.Route.extend({
+ afterModel : function (model,transition) {
+ transition.send("fileOpened",null);
}
});
diff --git a/javascript/app/routes/search.js b/javascript/app/routes/search.js
index c181c2f..3ad8905 100644
--- a/javascript/app/routes/search.js
+++ b/javascript/app/routes/search.js
@@ -11,12 +11,12 @@ export default Ember.Route.extend({
};
},
setupController(controller, model) {
- this._super(controller, model);
+ this._super(controller, model);
controller.set('createSearchUrlFunction',(query) => {
return urls.globalIdentifiersUrl(query);
});
},
- afterModel () {
+ afterModel () {
const onmouseup = (event) => {
// This makes links in documentation clickable
if(event.target.dataset.location) {
@@ -32,11 +32,11 @@ export default Ember.Route.extend({
}
};
this._onmouseup = onmouseup;
- document.addEventListener('mouseup',onmouseup);
+ document.addEventListener('mouseup',onmouseup);
},
deactivate() {
if(this._onmouseup) {
document.removeEventListener('mouseup',this._onmouseup);
}
- }
+ }
});