Avoid errors when recall messages start by a string (parameter name)
This commit is contained in:
@@ -776,7 +776,8 @@ function recall() {
|
||||
is_interpolating = 0;
|
||||
set_active_slot(args[0]);
|
||||
outlet(0, 'recall', args[0]);
|
||||
} else {
|
||||
} else if (args.length == 2) {
|
||||
if (typeof(args[0]) == 'number') {
|
||||
var src_slot = args[0];
|
||||
var trg_slot = args[1];
|
||||
|
||||
@@ -827,6 +828,10 @@ function recall() {
|
||||
|
||||
outlet(0, "recall", src_slot, trg_slot, interp);
|
||||
}
|
||||
}
|
||||
// else {
|
||||
// //typeof(args[0]) == 'string', so user just recalled a single parameter.
|
||||
// }
|
||||
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user