summaryrefslogtreecommitdiffstats
path: root/js/service/Item.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/service/Item.js')
-rw-r--r--js/service/Item.js20
1 files changed, 20 insertions, 0 deletions
diff --git a/js/service/Item.js b/js/service/Item.js
new file mode 100644
index 000000000..0dd9b8677
--- /dev/null
+++ b/js/service/Item.js
@@ -0,0 +1,20 @@
+/**
+ * ownCloud - News
+ *
+ * This file is licensed under the Affero General Public License version 3 or
+ * later. See the COPYING file.
+ *
+ * @author Bernhard Posselt <dev@bernhard-posselt.com>
+ * @copyright Bernhard Posselt 2014
+ */
+app.factory('Item', function (Model) {
+ 'use strict';
+
+ var Item = function () {
+ Model.call(this, 'id');
+ };
+
+ Item.prototype = Object.create(Model.prototype);
+
+ return new Item();
+}); \ No newline at end of file