summaryrefslogtreecommitdiffstats
path: root/js/filter
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/filter
parent594b92f649d8ed8a705f1af23639463078170d46 (diff)
port to es5 and add es6 shims for object prototypes instead
Diffstat (limited to 'js/filter')
-rw-r--r--js/filter/TrustUrl.js4
-rw-r--r--js/filter/UnreadCountFormatter.js4
2 files changed, 4 insertions, 4 deletions
diff --git a/js/filter/TrustUrl.js b/js/filter/TrustUrl.js
index e0958ad2d..745e44c5e 100644
--- a/js/filter/TrustUrl.js
+++ b/js/filter/TrustUrl.js
@@ -7,10 +7,10 @@
* @author Bernhard Posselt <dev@bernhard-posselt.com>
* @copyright Bernhard Posselt 2014
*/
-app.filter('trustUrl', ($sce) => {
+app.filter('trustUrl', function ($sce) {
'use strict';
- return (url) => {
+ return function (url) {
return $sce.trustAsResourceUrl(url);
};
}); \ No newline at end of file
diff --git a/js/filter/UnreadCountFormatter.js b/js/filter/UnreadCountFormatter.js
index 3450114b1..671d4e3c5 100644
--- a/js/filter/UnreadCountFormatter.js
+++ b/js/filter/UnreadCountFormatter.js
@@ -7,10 +7,10 @@
* @author Bernhard Posselt <dev@bernhard-posselt.com>
* @copyright Bernhard Posselt 2014
*/
-app.filter('unreadCountFormatter', () => {
+app.filter('unreadCountFormatter', function () {
'use strict';
- return (unreadCount) => {
+ return function (unreadCount) {
if (unreadCount > 999) {
return '999+';
}