Closed Quantalabs closed 3 years ago
Describe the bug Variables are not properly declared on line 63 of model.js.
model.js
https://github.com/epispot/EpiJS/blob/32c102c5a6d82c79b00740673efdceaff6556e76/EpiJS/model.js#L63-L64
Expected behavior When you run a command, perhaps:
model.get_data(20)
It returns an error:
$ node index.js /home/user/project/node_modules/@epispot/epijs/EpiJS/model.js:63 key = this.key ^ ReferenceError: key is not defined
NPM
Additional context Solution can be easily fixed with:
var key = this.key var newkey = key
Describe the bug Variables are not properly declared on line 63 of
model.js
.https://github.com/epispot/EpiJS/blob/32c102c5a6d82c79b00740673efdceaff6556e76/EpiJS/model.js#L63-L64
Expected behavior When you run a command, perhaps:
It returns an error:
NPM
Additional context Solution can be easily fixed with: