cms/app-client/app/models/document.js
changeset 270 6ddc52965fb8
parent 269 9659e91242e1
child 289 7cae80e5748c
--- a/cms/app-client/app/models/document.js	Thu Aug 25 18:44:50 2016 +0200
+++ b/cms/app-client/app/models/document.js	Thu Aug 25 19:10:41 2016 +0200
@@ -17,26 +17,6 @@
     mediaArray: DS.attr({ defaultValue: function() { return []; } }),
     subjects: DS.attr({ defaultValue: function() { return []; } }),
 
-    computedSubjects: Ember.computed('subjects', function() {
-        var array = [];
-        this.get('subjects').forEach(function(subject) {
-            var object = {};
-            if(typeof subject === 'object') {
-                if(subject.datatype) {
-                    object['url'] = subject.datatype;
-                }
-                if(subject.value) {
-                    object['name'] = subject.value;
-                }
-            } else {
-                object['url'] = subject;
-            }
-            array.push(object);
-        });
-        return array;
-    }),
-
-
     duration_ms: DS.attr('number', {
         defaultValue: function() {
             var self = this;