mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-23 18:17:20 +00:00
Fix bug handling of build command
We were taking the commands expanded from the build targets and placing them at the end of the queue. That caused a problem whereby the prevailing output folder was always the last one in the command token list. Now we splice the new commands into the command token list at the current position.
This commit is contained in:
parent
e018d8e0ef
commit
5b3b62f93d
@ -33,7 +33,10 @@ var Commander = function(commandTokens,callback,wiki,streams) {
|
||||
Add a string of tokens to the command queue
|
||||
*/
|
||||
Commander.prototype.addCommandTokens = function(commandTokens) {
|
||||
Array.prototype.push.apply(this.commandTokens,commandTokens);
|
||||
var params = commandTokens.slice(0);
|
||||
params.unshift(0);
|
||||
params.unshift(this.nextToken);
|
||||
Array.prototype.splice.apply(this.commandTokens,params);
|
||||
};
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user