diff --git a/examples/editModels.js b/examples/editModels.js index 6bf0d54e1d..ce9b52c3a0 100644 --- a/examples/editModels.js +++ b/examples/editModels.js @@ -248,15 +248,15 @@ var httpMultiPart = (function () { byteLength += buffer.byteLength; parts.push(buffer); - charCodes = []; + str = ""; for (i = 0; i < parts.length; i += 1) { + charCodes = []; view = new Uint8Array(parts[i]); - for (j = 0; j < view.length; j += 1) { + for(j = 0; j < view.length; j += 1) { charCodes.push(view[j]); } + str = str + String.fromCharCode.apply(String, charCodes); } - str = String.fromCharCode.apply(String, charCodes); - return str; } that.response = response;