Skip to content

Commit 92f15da

Browse files
committed
Removed for because of babel bug with IE
1 parent 55d3c82 commit 92f15da

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/JsBarcode.js

+5-3
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,9 @@ API.prototype.init = function(){
127127
this._renderProperties = [this._renderProperties];
128128
}
129129

130-
for(let renderProperty of this._renderProperties){
130+
var renderProperty;
131+
for(let i in this._renderProperties){
132+
renderProperty = this._renderProperties[i];
131133
var options = merge(this._options, renderProperty.options);
132134

133135
if(options.format == "auto"){
@@ -148,8 +150,8 @@ API.prototype.init = function(){
148150
// The render API call. Calls the real render function.
149151
API.prototype.render = function(){
150152
if(Array.isArray(this._renderProperties)){
151-
for(let renderProperty of this._renderProperties){
152-
render(renderProperty, this._encodings, this._options);
153+
for(let i in this._renderProperties){
154+
render(this._renderProperties[i], this._encodings, this._options);
153155
}
154156
}
155157
else{

0 commit comments

Comments
 (0)