summaryrefslogtreecommitdiffstats
path: root/js/controller/SettingsController.js
diff options
context:
space:
mode:
authorBernhard Posselt <dev@bernhard-posselt.com>2014-09-11 03:55:52 +0200
committerBernhard Posselt <dev@bernhard-posselt.com>2014-09-11 03:55:52 +0200
commitea9ebd4826fe9807af5bc17e786b3dc58f163970 (patch)
tree2894b40614ebe977797cea5745b215e2a2851f61 /js/controller/SettingsController.js
parent594b92f649d8ed8a705f1af23639463078170d46 (diff)
port to es5 and add es6 shims for object prototypes instead
Diffstat (limited to 'js/controller/SettingsController.js')
-rw-r--r--js/controller/SettingsController.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/js/controller/SettingsController.js b/js/controller/SettingsController.js
index 781790acc..4754b16d2 100644
--- a/js/controller/SettingsController.js
+++ b/js/controller/SettingsController.js
@@ -15,7 +15,7 @@ function ($route, SettingsResource, FeedResource) {
this.opmlImportError = false;
this.articleImportError = false;
- let set = (key, value) => {
+ var set = function (key, value) {
SettingsResource.set(key, value);
if (['showAll', 'oldestFirst'].indexOf(key) >= 0) {
@@ -24,28 +24,28 @@ function ($route, SettingsResource, FeedResource) {
};
- this.toggleSetting = (key) => {
+ this.toggleSetting = function (key) {
set(key, !this.getSetting(key));
};
- this.getSetting = (key) => {
+ this.getSetting = function (key) {
return SettingsResource.get(key);
};
- this.feedSize = () => {
+ this.feedSize = function () {
return FeedResource.size();
};
// TBD
- this.importOpml = (content) => {
+ this.importOpml = function (content) {
console.log(content);
};
- this.importArticles = (content) => {
+ this.importArticles = function (content) {
console.log(content);
};