Let's get rid of another callback

This commit is contained in:
Gina Häußge 2015-09-28 17:08:40 +02:00
parent 7b7f21d126
commit 7a06f496de

View file

@ -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();
}
});
};