Changeset 625 for trunk/zoo-project/zoo-api
- Timestamp:
- Apr 10, 2015, 11:12:37 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/zoo-project/zoo-api/js/ZOO-api.js
r502 r625 3671 3671 var outputs = node.*::ProcessOutputs.*::Output; 3672 3672 if (outputs.length() > 0) { 3673 var data = outputs[0].*::Data.*::*[0]; 3674 var builder = this.parseData[data.localName().toLowerCase()]; 3675 if (builder) 3676 return builder.apply(this,[data]); 3677 else 3678 return null; 3673 var res=[]; 3674 for(var i=0;i<outputs.length();i++){ 3675 var data = outputs[i].*::Data.*::*[0]; 3676 if(!data){ 3677 data = outputs[i].*::Reference; 3678 } 3679 var builder = this.parseData[data.localName().toLowerCase()]; 3680 if (builder) 3681 res.push(builder.apply(this,[data])); 3682 else 3683 res.push(null); 3684 } 3685 return res.length>1?res:res[0]; 3679 3686 } else 3680 3687 return null; … … 3734 3741 */ 3735 3742 'reference': function(node) { 3736 var result = {type:'reference',value:node. *::href};3743 var result = {type:'reference',value:node.@href}; 3737 3744 return result; 3738 3745 }
Note: See TracChangeset
for help on using the changeset viewer.