fork
Brian White 12 years ago
parent b3e47568bf
commit 7515fe99e2

@ -65,7 +65,7 @@ exports.parseFetch = function(str, literals, fetchData) {
};
exports.parseBodyStructure = function(cur, literals, prefix, partID) {
var ret = [];
var ret = [], i, len;
if (prefix === undefined) {
var result = (Array.isArray(cur) ? cur : exports.parseExpr(cur, literals));
if (result.length)
@ -83,7 +83,7 @@ exports.parseBodyStructure = function(cur, literals, prefix, partID) {
if (partLen > next) {
if (Array.isArray(cur[next])) {
part.params = {};
for (var i=0,len=cur[next].length; i<len; i+=2)
for (i=0,len=cur[next].length; i<len; i+=2)
part.params[cur[next][i].toLowerCase()] = cur[next][i+1];
} else
part.params = cur[next];
@ -111,7 +111,7 @@ exports.parseBodyStructure = function(cur, literals, prefix, partID) {
}
if (Array.isArray(cur[2])) {
part.params = {};
for (var i=0,len=cur[2].length; i<len; i+=2)
for (i=0,len=cur[2].length; i<len; i+=2)
part.params[cur[2][i].toLowerCase()] = cur[2][i+1];
if (cur[1] === null)
++next;
@ -120,7 +120,7 @@ exports.parseBodyStructure = function(cur, literals, prefix, partID) {
// envelope
if (partLen > next && Array.isArray(cur[next])) {
part.envelope = {};
for (var i=0,len=cur[next].length; i<len; ++i) {
for (i=0,len=cur[next].length; i<len; ++i) {
if (i === 0)
part.envelope.date = cur[next][i];
else if (i === 1)

Loading…
Cancel
Save