summaryrefslogtreecommitdiffstats
path: root/js/service/FeedResource.js
diff options
context:
space:
mode:
authorBernhard Posselt <dev@bernhard-posselt.com>2014-05-21 23:43:28 +0200
committerBernhard Posselt <dev@bernhard-posselt.com>2014-05-21 23:43:28 +0200
commit0fa67552247b2d29a6ca438c2605b8db2bbdbab7 (patch)
tree8109135e2fc141a324e8f21c66243ee4277b3b7c /js/service/FeedResource.js
parentd3a774b2bd79654360a3ef12618102abf85a2ce3 (diff)
es6 all the things
Diffstat (limited to 'js/service/FeedResource.js')
-rw-r--r--js/service/FeedResource.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/js/service/FeedResource.js b/js/service/FeedResource.js
index 09de0a607..903a58241 100644
--- a/js/service/FeedResource.js
+++ b/js/service/FeedResource.js
@@ -7,14 +7,14 @@
* @author Bernhard Posselt <dev@bernhard-posselt.com>
* @copyright Bernhard Posselt 2014
*/
-app.factory('FeedResource', function (Resource, $http) {
+app.factory('FeedResource', (Resource, $http) => {
'use strict';
- var FeedResource = function ($http) {
- Resource.call(this, 'url', $http);
- };
-
- FeedResource.prototype = Object.create(Resource.prototype);
+ class FeedResource extends Resource {
+ constructor ($http) {
+ super('url', $http);
+ }
+ }
return new FeedResource($http);
}); \ No newline at end of file