cms/app-client/app/components/notice-component.js
changeset 271 e234339fe8df
parent 270 6ddc52965fb8
child 278 f2c2c80a49f7
equal deleted inserted replaced
270:6ddc52965fb8 271:e234339fe8df
    28     }),
    28     }),
    29 
    29 
    30     subjects: Ember.computed('item.subjects', function() {
    30     subjects: Ember.computed('item.subjects', function() {
    31         var subjects = [];
    31         var subjects = [];
    32         if(this.get('item')) {
    32         if(this.get('item')) {
    33             this.get('subjects').forEach(function(subject) {
    33             this.get('item').get('subjects').forEach(function(subject) {
    34                 var object = {};
    34                 var object = {};
    35                 if(typeof subject === 'object') {
    35                 if(typeof subject === 'object') {
    36                     if(subject.datatype) {
    36                     if(subject.datatype) {
    37                         object['url'] = subject.datatype;
    37                         object['url'] = subject.datatype;
    38                     }
    38                     }