Skip to content

Commit

Permalink
Removed for because of babel bug with IE
Browse files Browse the repository at this point in the history
  • Loading branch information
lindell committed May 25, 2016
1 parent 55d3c82 commit 92f15da
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/JsBarcode.js
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,9 @@ API.prototype.init = function(){
this._renderProperties = [this._renderProperties];
}

for(let renderProperty of this._renderProperties){
var renderProperty;
for(let i in this._renderProperties){
renderProperty = this._renderProperties[i];
var options = merge(this._options, renderProperty.options);

if(options.format == "auto"){
Expand All @@ -148,8 +150,8 @@ API.prototype.init = function(){
// The render API call. Calls the real render function.
API.prototype.render = function(){
if(Array.isArray(this._renderProperties)){
for(let renderProperty of this._renderProperties){
render(renderProperty, this._encodings, this._options);
for(let i in this._renderProperties){
render(this._renderProperties[i], this._encodings, this._options);
}
}
else{
Expand Down

0 comments on commit 92f15da

Please sign in to comment.