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


_______________________________________________________
fluid-work mailing list - [email protected]
To unsubscribe, change settings or access archives,
see http://lists.idrc.ocad.ca/mailman/listinfo/fluid-work

Reply via email to