mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-08-25 04:57:03 +00:00
Fixed: Make sure Jakefile both work for async and sync calls
The callback variable was not set if the call to initilize was synchronous. It is now set before so both sync and async will work
This commit is contained in:
@@ -8,8 +8,6 @@ function callbackFunction(blendtask) {
|
||||
callback(blendtask);
|
||||
}
|
||||
|
||||
require("../../../CommonJS/lib/cappuccino/jake.js").initilize(callbackFunction);
|
||||
|
||||
$BUILD_CJS_BLENDTASK = path.join($BUILD_CJS_CAPPUCCINO, "lib", "cappuccino", "jake", "blendtask.j");
|
||||
|
||||
var promise = new Promise((resolve, reject) => {
|
||||
@@ -23,6 +21,8 @@ var promise = new Promise((resolve, reject) => {
|
||||
}
|
||||
});
|
||||
|
||||
require("../../../CommonJS/lib/cappuccino/jake.js").initilize(callbackFunction);
|
||||
|
||||
async function defineBlendTask() {
|
||||
await exports.blend ("Aristo2.blend", function(aristoTask)
|
||||
{
|
||||
@@ -36,4 +36,4 @@ async function defineBlendTask() {
|
||||
task ("build", ["Aristo2.blend"]);
|
||||
}
|
||||
|
||||
exports.jakePromise = promise;
|
||||
exports.jakePromise = promise;
|
||||
|
||||
Reference in New Issue
Block a user