Let's get rid of another callback
This commit is contained in:
parent
7b7f21d126
commit
7a06f496de
1 changed files with 2 additions and 5 deletions
|
|
@ -64,13 +64,10 @@ $(function() {
|
|||
&& self.profile() != undefined;
|
||||
});
|
||||
|
||||
self.requestData = function(callback) {
|
||||
OctoPrint.slicing.listAllSlicersAndProfiles()
|
||||
self.requestData = function() {
|
||||
return OctoPrint.slicing.listAllSlicersAndProfiles()
|
||||
.done(function(data) {
|
||||
self.fromResponse(data);
|
||||
if (callback !== undefined) {
|
||||
callback();
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue