Let's get rid of another callback
This commit is contained in:
1 parent
7b7f21d126
commit
7a06f496de
1 file changed
+2
-5
@@ -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();
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
Reference in new issue
Block a user