Skip to content

Commit

Permalink
Merge pull request #418 from fdussert/fdussert-patch-foreach
Browse files Browse the repository at this point in the history
Replace jquery each by standard forEach
  • Loading branch information
gitbrent authored Oct 13, 2018
2 parents 0d5a64f + 2ef34b7 commit a01f127
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dist/pptxgen.js
Original file line number Diff line number Diff line change
Expand Up @@ -4260,7 +4260,7 @@ var PptxGenJS = function(){
strXml += '<TitlesOfParts>';
strXml += '<vt:vector size="'+ (gObjPptx.slides.length+1) +'" baseType="lpstr">';
strXml += '<vt:lpstr>Office Theme</vt:lpstr>';
$.each(gObjPptx.slides, function(idx,slideObj){ strXml += '<vt:lpstr>Slide '+ (idx+1) +'</vt:lpstr>'; });
gObjPptx.slides.forEach(function(slideObj, idx){ strXml += '<vt:lpstr>Slide '+ (idx+1) +'</vt:lpstr>'; });
strXml += '</vt:vector>';
strXml += '</TitlesOfParts>';
strXml += '<Company>'+gObjPptx.company+'</Company>';
Expand Down

0 comments on commit a01f127

Please sign in to comment.