Skip to content Skip to sidebar Skip to footer

Taffydb: Passing In Options To A Function

update: This code is bonkers. The root of the issue here is recreating the name of a variable by concating strings and assuming it would then magically turn into that variable.. I

Solution 1:

Here:

machineNumber({booked:"no"})

machineNumber is a string, but you're trying to call it as if it is a function. You'll get the same error if you do something like

someVar = 'bob';
someVar();

You say that if you run

createTimePicker(cybex_arctrainer1);

but your code is not calling createTimePicker with the variablecybex_arctrainer1 as an argument, instead it's doing something more like:

createTimePicker('cybex_arctrainer1');

Post a Comment for "Taffydb: Passing In Options To A Function"