src/js/serializers/JSONSerializer.js
branchpopcorn-port
changeset 783 591b117c19ca
parent 693 6328901da7bf
child 797 8407313c144f
equal deleted inserted replaced
782:144e215dd324 783:591b117c19ca
   369     return;
   369     return;
   370 
   370 
   371   name = name.toUpperCase();
   371   name = name.toUpperCase();
   372   var e;  
   372   var e;  
   373   e = IriSP.underscore.find(this._data["annotation-types"], 
   373   e = IriSP.underscore.find(this._data["annotation-types"], 
   374                                   function(entry) { return (entry["dc:title"].toUpperCase().indexOf(name) !== -1) });
   374                                   function(entry) { 
       
   375                                     if (IriSP.null_or_undefined(entry["dc:title"]))
       
   376                                       return false;
       
   377                                     
       
   378                                     return (entry["dc:title"].toUpperCase().indexOf(name) !== -1) });
   375   
   379   
   376   if (typeof(e) === "undefined")
   380   if (typeof(e) === "undefined")
   377     return;
   381     return;
   378     
   382     
   379   var id = e.id;
   383   var id = e.id;