mirror of
https://github.com/balena-io/balena-cli.git
synced 2025-01-31 08:25:36 +00:00
Bind progress update function to avoid context issues
This commit is contained in:
parent
c4d1e4244e
commit
caa4fcf754
@ -131,7 +131,7 @@
|
||||
return done();
|
||||
}
|
||||
bar = new visuals.widgets.Progress('Writing Device OS');
|
||||
params.progress = bar.update;
|
||||
params.progress = _.bind(bar.update, bar);
|
||||
return bundle.write(params, callback);
|
||||
}
|
||||
], function(error) {
|
||||
|
@ -167,7 +167,7 @@ exports.install =
|
||||
return done() if not confirmed
|
||||
|
||||
bar = new visuals.widgets.Progress('Writing Device OS')
|
||||
params.progress = bar.update
|
||||
params.progress = _.bind(bar.update, bar)
|
||||
bundle.write(params, callback)
|
||||
|
||||
], (error) ->
|
||||
|
Loading…
x
Reference in New Issue
Block a user