possible issue in the framework?
Antranig Basman
antranig.basman at colorado.edu
Wed Dec 12 04:37:49 UTC 2012
Thanks, Alexey - this is a good bug report and I've added some comments on the JIRA.
Cheers,
A
On 07/12/2012 11:27, Novak, Alexey wrote:
> Hey Antranig,
>
> I was working on one of the CSpace components and stumbled upon the issue in the framework. It is related to invokers which are not assigned to anything in the component's configuration.
> I created the JIRA and a branch with the test to replicate an issue http://issues.fluidproject.org/browse/FLUID-4861 (everything is described there)
>
> In my specific example: I was checking if the invoker exists (user set it to something) then execute it. Something like
>
> if (that.invoker) {
> that.invoker();
> }
> But the if part would always resolve to true. and I can always call that.invoker(); even though with an error.
>
>
> My first impression was that if a component has something like
>
> invokers: {
> invoker: null
> }
> then components invoker will be resolved to undefined or null so that a simple check like (that.invoker) will be falsy all the time.
>
>
> What do you think about this?
>
> Alex
>
More information about the fluid-work
mailing list